in reply to Greedy RegExp

Untested:
/<img \s+ id \s* = \s* (?:'[^']*'|"[^"]*"|[-\w]+) \s+ src \s* = \s* WantToGetRidOfThis\.gif \s+ width \s* = \s* (?:'[^']*'|"[^"]*"|[-\w]+) \s* >/x;

Of course, you're probably much better off using an HTML parser.

Abigail

Replies are listed 'Best First'.
Re: Re: Greedy RegExp
by fourmi (Scribe) on Mar 15, 2004 at 16:17 UTC
    wow, have a quick fix now, but will investigate the parser idea as soon as i can.. cheers!