Strip out underscores, hyphens and .jpg for title and alt image tags
Is it possible to strip out underscores, hyphens and .jpg from the product image name for displaying in the title and alt tags on the results and detail pages.
This is the code which displays the image on the results page
<td class="WADAResultsEntry"><div class="WADAResultThumbArea"><a href="products_Detail.php?ProductID=<?php echo(rawurlencode($row_WADAproducts['ProductID'])); ?>" title="<?php echo $row_WADAproducts["ProductImage"]; ?>"><img src="images/productimages/<?php echo $row_WADAproducts["ProductImage"]; ?>" alt="<?php echo $row_WADAproducts["ProductImage"]; ?>" width="200" border="0" class="WADAResultThumb" /></a></div>
A mouseover on any image shows the title but with all the underscores, hyphens and the extension .jpg but would like to strip these out. Can it be done?