Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: basic question: regular expression

by AnomalousMonk (Archbishop)
on Dec 01, 2016 at 13:50 UTC ( [id://1177038]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -wMstrict -le
    "my $s = 'kkkaaabc';
    ...
     ^^^^^^  /k*a*/ matched 'kkkaaa' at offset 0
    'kkkaaabc'
       /a*/ matched '' at offset 0
    
  2. or download this
    my $match = $s =~ m{ ($rx) }xms;
    
    ...
        print 'no match';
        next;
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found