/<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
In reply to Re: Greedy RegExp
by Abigail-II
in thread Greedy RegExp
by fourmi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |