Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Regular Expresso 2

by choroba (Cardinal)
on Apr 26, 2016 at 20:24 UTC ( [id://1161591]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $Test_String = <STDIN> ;
    if($Test_String =~ /$Regex_Pattern/){
    ...
    } else {
        print "false";
    }
    
  2. or download this
    1110110001 => 00111, 10101
                      7     21
                  3 * 7  =  21, accept!
    
  3. or download this
    use bigint;
    
    ...
    }
    
    $Regex_Pattern = qr/(?{ check() })/;
    
  4. or download this
    (?(condition)yes-pattern|no-pattern)
    
  5. or download this
    $Regex_Pattern = qr/^(?(?{ check() }) ^ | (*FAIL) )/x;
    
  6. or download this
    '^(?(?{c()})^|(*F))'
    
  7. or download this
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
    }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found