On Feb 14, 2014, at 1:04 PM, Adam Katz <antis...@khopis.com> wrote:

> Noooooo, don't do that.  (?:\s*\w+)+  is a ReDoS bomb (and you have it ten 
> times!) which will destroy your 

Whoops, you're very right.  Removing the + after the \w (that is, turning it to 
(?:\s*\w)+ ) should match the same things but without this exponential 
branching... I think.

--- Amir

Reply via email to