I'm using ActivePerl in Windows on a file that contains \r\n carriage returns, but but I can't match them in my Perl regex. Neither of these expressions works:
<cp IX='1'\/>([A-Z][A-Z][A-Z])(.*?)\r\n> <cp IX='1'\/>([A-Z][A-Z][A-Z])(.*?)\x0d\x0aBoth expressions work in editpad pro. I ended up having to replace every instance or "\r\" with with "crlf" and use this expression:
cp IX='1'\/>([A-Z][A-Z][A-Z])(.*?)crlfIs Perl not supposed to recognize both "\r\n" and "\x0d\x0a" as carriage returns? They are definitely present in the file or I couldn't have found and replaced them with "crlf".
In reply to ActivePerl won't match carriage returns by dsayars
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |