Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: [RFC] [OT] Building Regex Alternations Dynamically (updated)

by AnomalousMonk (Archbishop)
on Jan 19, 2017 at 20:34 UTC ( [id://1179940]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $rx = qr{ ... }xms;
    ...
    $string =~ m{ $rx* $rx+? $rx{3,4} }xms and do_something();
    
  2. or download this
    my ($n, $m) = (3, 4);
    ...
    $string =~ m{ $rx{$n,$m} }xms and do_something();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-23 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found