a simple (i think) REGEX needed for Textmate

118 views Asked by At

Can someone please advise how to do this search and replace in textmate. I think I need a REGEX (but i know very little about REGEXes!)

i want to change all these bullet images to GIFs...

bullet-1.png

becomes

bullet-1.gif

and I want where the number is to be a wildcard

1

There are 1 answers

2
Vidul On BEST ANSWER

The regular expression:

bullet-(\d+).png

The replacement:

bullet-$1.gif