Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Deriving Regular Expressions

by mojotoad (Monsignor)
on Apr 18, 2002 at 21:19 UTC ( [id://160349]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       qr/^  ab\+cd   \(12\)34$/
       qr/^\s{2}[a-z]{2}\+[a-z]{2}\s{3}\(\d{2}\)\d{2}$/
       qr/^\s+[a-z]+\+[a-z]+\s+\(\d+\)\d+$/
       qr/^\s+\S+\s+\S+$/
    
  2. or download this
       $str = '  ab+cd   (12)34';
       $str = quotemeta($str);
    ...
    
       Output:
       (?i-xsm:\\s+\\s+[a-z][a-z]\+[a-z][a-z]\\s+\\s+\\s+\(\d\d\)\d\d)
    
  3. or download this
       $str = '  ab+cd   (12)34';
       $str = quotemeta($str);
    ...
    
       Output:
       (?i-xsm:\s+[a-z][a-z]\+[a-z][a-z]\s+\(\d\d\)\d\d)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2024-04-19 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found