good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: search a string in a non-regular fileby BillKSmith (Monsignor) |
on Jul 18, 2017 at 20:15 UTC ( [id://1195373]=note: print w/replies, xml ) | Need Help?? |
I suspect that you are having a problem with multi-line strings. A period does not match a newline (unless you use the /s flag). The anchors ^ and $ refer to beginning and end of the string, not the line (unless you specify /m)
Bill
In Section
Seekers of Perl Wisdom
|
|