in reply to Re: Re: Re: Regular Expression Question
in thread Regular Expression Question

Update: with regard to It's probably faster to use 2 regexps too: Yes, a quick Benchmarking shows that, with anchoring, the double-regex style runs about 50% faster than the single-regex solution I posted. (Perhaps one of the resident RegEx gurus can explain why this is?)

Generally anything that looks like "(AB*)*" is bad for the backtracking.

--
James Antill
  • Comment on Re: Re: Re: Re: Regular Expression Question