Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Perl6ish rules in Perl5's regex engine

by robin (Chaplain)
on Sep 12, 2006 at 20:55 UTC ( [id://572622]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl6ish rules in Perl5's regex engine
in thread Perl6ish rules in Perl5's regex engine

I had the same idea a few years ago, and implemented it in PCRE. The author of PCRE reworked the implementation but kept the idea, and it's been a standard feature of PCRE since then. I still think it's very cool, but I don't know whether anyone actually uses it...

I didn't have the guts to try and do it for perl's regex engine. If you do it, it might be worth considering using the same syntax as PCRE?

  • Comment on Re^2: Perl6ish rules in Perl5's regex engine

Replies are listed 'Best First'.
Re^3: Perl6ish rules in Perl5's regex engine
by demerphq (Chancellor) on Sep 13, 2006 at 10:03 UTC

    If you do it, it might be worth considering using the same syntax as PCRE?

    Well, if it meant the patch was more likely to be applied then yes. OTOH, Im not super keen on using capturing buffers as the fix point. But im not totally against it either. I really need to look into PCRE more closely. How do they do named capture buffers?

    ---
    $world=~s/war/peace/g

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 06:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found