in reply to Re: ActivePerl won't match carriage returns
in thread ActivePerl won't match carriage returns

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)     # works

Replies are listed 'Best First'.
Re^3: ActivePerl won't match carriage returns
by Anonymous Monk on Nov 01, 2011 at 22:47 UTC