Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by tobyink (Canon)
on Feb 13, 2013 at 17:11 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1018580]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found