[Skip to the main content] Welcome to Daigo’s Daily Digital Diorama. I blog about Baseball, Judo, Jazz, Linux, Design and on being a dad.

  • Get Firefox!

Grepping in BB Edit

I wanted to find <img src="images/spacer.gif" width="Any Number” height=”Any Number” border=”0″ alt=”"> (Automaticly generated FireWorks Spacer gifs) and replace it with <img src="/http://www.url.com/images/s.gif" width="Right Number” height=”Right Number” border=”0″ alt=”" />: so here is how to do it:

FIND: <img src="images/spacer.gif" width="(\d*)" height="(\d*)" border="0" alt="">
REPLACE: <img src="images/spacer.gif" width="\1" height="\2" border="0" alt="" />

Good reference is at BBEdit Tips and Tricks I know I shouldn’t be using spacer gifs!

Comments are closed.