Hi charlie_pi
you can try like this,
use strict; local $/;#####To read the whole content of a file while(<DATA>){ while($_=~/\(\!-- #BeginEditable \"([^"]*)" --\)(.*?)\(\!-- #EndEd +itable --\)/sgi){ print "IN:$1:$2\n"; ##do your stuffs here } }
Punitha
In reply to Re: regex help humbly sought
by Punitha
in thread regex help humbly sought
by charlie_pi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |