For each char after the opening <tr, it makes sure that it's not the beginning of a$string =~ s/<tr(?:(?!<tr>).)+?NOTWANTED.+?<\/tr>//gsm;
In reply to Re: greedy/nongreedy regex replacement
by Roy Johnson
in thread greedy/nongreedy regex replacement
by svenXY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |