in reply to Re: why this regular expression is so slow?
in thread why this regular expression is so slow?

Alternatively, sexeger points out the approach of reversing the input and then taking the first four non-dash/dots characters, which should also happen without much backtracking.

  • Comment on Re^2: why this regular expression is so slow?