Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

basic question: regular expression

by Anonymous Monk
on Dec 01, 2016 at 07:08 UTC ( [id://1177010]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "5 $&      Expected: kaaa   ?? /k?a*/\n" if /k?a*/;
    print "6 $& Expected: kkkaaa OK\n"      if /k*a*/;
    
  2. or download this
    String = kkkaaabc
    1 k      Expected: ka     ?? /k?a?/
    ...
    5 k      Expected: kaaa   ?? /k?a*/
    6 kkkaaa Expected: kkkaaa OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-23 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found