Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Tidying and simplifying a regular expression

by tinita (Parson)
on Dec 08, 2017 at 19:05 UTC ( [id://1205199]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use re ();
    for (1..10) {
        my ($pat, $flags) = re::regexp_pattern($rex);
        $rex = ($flags eq "u" or $flags eq "") ? qr{$pat.} : qr{$rex.};
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found