Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Modification of a read-only value attempted

by ikegami (Patriarch)
on May 21, 2020 at 14:50 UTC ( [id://11117041]=note: print w/replies, xml ) Need Help??


in reply to Re: Modification of a read-only value attempted
in thread Modification of a read-only value attempted

Ordinarily a regex will "greedily" try to match the longest possible string

No.

# Matches 2 chars at pos 0, not 6 chars at pos 2. "acabbbbc" =~ /ab*c/

Greediness applies to individual regex atoms, causing those to match as much as possible at the current position.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-16 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found