Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: search a string in a non-regular file

by BillKSmith (Monsignor)
on Jul 18, 2017 at 20:15 UTC ( [id://1195373]=note: print w/replies, xml ) Need Help??


in reply to search a string in a non-regular file

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
  • Comment on Re: search a string in a non-regular file

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1195373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found