Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Why doesn't this regex work?

by Laurent_R (Canon)
on Aug 15, 2013 at 10:16 UTC ( [id://1049544]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<8> $_ = "105 106 107 108 109 110 111 112 113 213 214";
    
      DB<9> s[\s?(\d+)\d\d\K\s(?=(\d+)\d\d\s?)]{$1 + 1 == $2 ? "\n" : ' '}
    +ge;
    ...
    0  '105 106 107 108 109 110 111 112 113
    213 214'
      DB<11>
    
  2. or download this
    $_ = qw /105 106 107 108 109 110 111 112 113 313 314/;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-03-28 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found