Thanks for the reply. I used the global /g. It's searching for certain code sequences in a huge XML file. Here are the actual matching statements:
while ($text=~/IX='1'\/>([A-Z][A-Z][A-Z])(.*?)\r\n(.*?)\r\n|IX='0'\/>\r\n([A-Z][A-Z][A-Z])(.*?)\r\n(.*?)\r\n/g) # doesn't work while ($text=~/IX='1'\/>([A-Z][A-Z][A-Z])(.*?)CRLF(.*?)CRLF|IX='0'\/>CRLF([A-Z][A-Z][A-Z])(.*?)CRLF(.*?)CRLF/g) # worksIn reply to Re^2: ActivePerl won't match carriage returns
by dsayars
in thread ActivePerl won't match carriage returns
by dsayars
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |