Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?

Replies are listed 'Best First'.
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?
[Lady_Aleena]: Would someone please derail my train of thought?
[Discipulus]: marto as Marcus Manlius Capitolinus
[Discipulus]: use Dynamite; Lady_Aleena
[Lady_Aleena]: That's the problem. I have 29 scripts, 3 modules, and gads of data I am thinking about deleting out of anger over an API change that made all of those things worthless.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-05-25 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?