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

Re^3: Regular expression * vs +

by mwah (Hermit)
on May 20, 2008 at 13:22 UTC ( [id://687603]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     ...
     my $txt='-UK 123 123-UK 123-UK 123-UK';
     print "|$1| - match until pos:" . pos($txt) . "\n" while $txt=~/((?:\
    +d+-UK\W?)+)/g ;
     ...
    
  2. or download this
     ...
     my $txt='-UK 123 123-UK 123-UK 123-UK';
     print "|$1| - match until pos:" . pos($txt) . "\n" while $txt=~/((?:\
    +d+-UK\W?)*)/g ;
     ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found