Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: Parse string and extract word after specific pattern

by choroba (Cardinal)
on Mar 28, 2017 at 07:58 UTC ( [id://1186205]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Parse string and extract word after specific pattern
in thread Parse string and extract word after specific pattern

> the documentation should state that the first argument is always treated as a regex

It does at the very beginning of split:

split /PATTERN/,EXPR,LIMIT split /PATTERN/,EXPR split /PATTERN/ split

There are only three exceptions, space, empty regex, and /^/ .

($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,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-18 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found