Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Perl regex txt file new line (not recognised?)by kcott (Archbishop) |
on Jan 22, 2020 at 06:20 UTC ( [id://11111717]=note: print w/replies, xml ) | Need Help?? |
G'day thurinus, Welcome to the Monastery. As already indicated, it's likely you have line terminators not matching the '$'. You may have more success using '\R', the generic newline. See perlrebackslash: \R and note you'll need at least Perl v5.10 to use this. Here's a quick-and-dirty example to compare '$' with '\R':
In case you didn't know, the '\f' is a form-feed. — Ken
In Section
Seekers of Perl Wisdom
|
|