Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 romping around the Monastery: (6)
As of 2014-10-21 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (96 votes), past polls