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.