in reply to Re^2: Matching text between tags
in thread Matching text between tags

Did you try what I suggested?

if has scalar context and will only match once per line!

The /g will only memorize the position fur the consecutive match.

(i.e. two ifs will match twice and so on)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!