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!
In reply to Re^3: Matching text between tags
by LanX
in thread Matching text between tags
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |