http://www.perlmonks.org?node_id=972829


in reply to Re: Regex priorities.
in thread Regex priorities.

Hi BrowserUk,

Thanks for that. It worked perfectly. I decided to change "<" for "/" because I use it less, in fact I do use "<" for other reasons, but not "/", so I ended up with:

my $r = q( <(\D+)> # Opening tag <....> ([^/]*?) # stuff in the middle which does not h +ave the closing tab character '/' (<\/\1>) # closing tag of same type as opening +tag </....>. ); while ($text =~ m/$r/gix){ ... processing ... }

Thanks for your help.

Regards

Steve