Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by BrowserUk (Pope)
on Feb 14, 2013 at 04:31 UTC ( #1018678=note: print w/ replies, xml ) Need Help??


in reply to Re: A regex that only matches at offset that are multiples of a given N?
in thread A regex that only matches at offset that are multiples of a given N?

That is really very clever. Thank you. (I'll get around to trying it out in my real application later and let you know how I get on.)

I also really like your test methodology. Mixing the freds at different multiple boundaries within the same string is a very neat way of testing.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^2: A regex that only matches at offset that are multiples of a given N?
Re^3: A regex that only matches at offset that are multiples of a given N?
by smls (Friar) on Feb 14, 2013 at 11:46 UTC
    Mixing the freds at different multiple boundaries within the same string is a very neat way of testing.
    I can't take credit for that, it was copied from johngg's answer. I just made it a little more readable.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-07-30 01:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls