in reply to Re^4: Regexp matching on a multiline file: dealing with line breaks
in thread Regexp matching on a multiline file: dealing with line breaks
Also, read $/:
Remember: the value of $/ is a string, not a regex. awk has to be better for something. :-)What might work, though, is
$/ = "\n>";
You'll need to remove the rest of the header from the the block, though.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Regexp matching on a multiline file: dealing with line breaks
by Anonymous Monk on Dec 10, 2015 at 21:55 UTC | |
by Athanasius (Archbishop) on Dec 11, 2015 at 09:58 UTC | |
by choroba (Cardinal) on Dec 10, 2015 at 22:08 UTC |