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

Re (3): Apocalypse 5 and regexes

by VSarkiss (Monsignor)
on Jun 05, 2002 at 17:01 UTC ( #171913=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Apocalypse 5 and regexes
in thread Apocalypse 5 and regexes

If I read it right, there'll be a :p5 modifier to say "interpret this regex according to p5 rules". Quote Larry:

So:
    m:w/ foo\ bar \h* \: (baz)*/ really means (expressed in Perl 5 form):
    m:p5/\s*foo bar[\040\t\p{Zs}]*:\s*(baz)*/
I know which of those forms I'd rather use.

In general, though, I agree with you that it'd be better to convert an entire program at once instead of piecemeal. Unless you lack time and resources....

Update
Larry explicitly says later in the document:

Finally, there's the :p5 modifier, which causes the rest of the regex (or group) to be parsed as a Perl 5 regular expression, including any interpolated strings. (But it still doesn't enable Perl 5's trailing modifiers.)
Should've read more before I typed....

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-05-26 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (92 votes). Check out past polls.

    Notices?