This is just JediWizard's solution with a bunch of junk removed:
my @fetch = ($str =~ m# ( <IPDR> (?:(?!</IPDR>).)* test (?:(?!</IPDR>).)* </IPDR> ) #sxgi);
And because of the 's' at the end, there's no need to remove the newlines beforehand.
In reply to Re^2: one line regexp problem
by ikegami
in thread one line regexp problem
by hoodlooms
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |