Regular Expressions

search: ([A-Za-z0-9\s-=";/0]*)

replace: $1whateveryouwant

 

The () mark takes place of $1

 

e.g.

this is wrong: <td><img src="img/D0204</td>

and to make it right we do:

search: <img([A-Za-z0-9\s-=";/0]*)

replace: <img$1.jpg" alt="" />

which results in: <td><img src="img/D0204" alt="" /></td>

Tags: Programming