4 Replies Latest reply: Jun 22, 2011 9:02 AM by MurraySummers Branched to a new discussion. RSS

    WildCard Find & Replace Question

    Cayce Community Member

      Hey, Forum;

       

      I've just inherited a site with over 800 image tags, none of which have any Alt attributes, not even empty ones. I want to start fixing the problem by doing a find and replace on all image tags, dropping an empty alt="" after each image path. All image paths being different, I'd start with this (Find):

       

      <img src="[^"]*"

       

      with the intention of replacing all results with a space and alt="" after the existing string. Problem is, when I try it with this (Replace):

       

      <img src="[^"]*" alt=""

       

      the replacement string is literal... all img src= paths will be replaced with "[^"]*". The question is, is there a way to use a wildcard in the replace function that leaves the existing code in place?

       

      Thanks much.

       

      Cayce