Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: A regex that only matches at offset that are multiples of a given N?

by tobyink (Abbot)
on Feb 13, 2013 at 17:11 UTC ( #1018580=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use v5.12;
    
    ...
        next if pos($a) % 4;
        say "Match at ", pos($a), ": ", $1;
    }
    
  2. or download this
    use v5.12;
    
    ...
    {
        say "Match at ", pos($a), ": ", $1;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-21 01:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (100 votes), past polls