Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Regex question once-only use of chars in a charset

by AnomalousMonk (Abbot)
on May 16, 2011 at 13:05 UTC ( #905070=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl -wMstrict -le
    "my $s = '1a2b3c';
    ...
    matched '3c'
    matched '3c'
    matched '3c'
    
  2. or download this
    $pattern = 'Seuss';
         while (<>) {
             print if /$pattern/;
         }
    
  3. or download this
    #!/usr/bin/perl
         #    Improved simple_grep
    ...
         while (<>) {
             print if /$regexp/o;  # a good deal faster
         }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-12-27 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls