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

Re^2: Invert grep match with qr// variable

by ikegami (Patriarch)
on Feb 06, 2024 at 22:15 UTC ( [id://11157590]=note: print w/replies, xml ) Need Help??


in reply to Re: Invert grep match with qr// variable
in thread Invert grep match with qr// variable

  • .* should be (?s:.*?).
    • Without /s, it could affect whether some strings match or not.
    • Without the non-greedy, it will affect the value of capture vars ($&, $1, etc) on a match. Not relevant in this case.
  • ^ should be be \G
    • This will affect the number of matches when /g is used. Not relevant in this case.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-12 15:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found