Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by AnomalousMonk (Canon)
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?
[Corion]: A good daystart to everybody ;)
[Discipulus]: good morning Corion et ceteri

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2016-12-07 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (125 votes). Check out past polls.