Re: regex performance in tests

2016-02-22 Thread Dominique Pellé
Daniel Naber wrote: > Hi, > > there's a regex that makes tests quite slow in PatternTestTools.java: > >CHAR_SET_PATTERN = > Pattern.compile("(\\(\\?-i\\))?.*(? > I don't fully understand it, does it need to be that complicated? If I > simplify it like this: > >CHAR_SET_PATTERN = Pattern.c

RE: regex performance in tests

2016-02-22 Thread Daniel Naber
On 2016-02-22 17:31, Mike Unwalla wrote: > RegexBuddy (www.regexbuddy.com) shows that in each regex, there is a > missing > closing parenthesis. That's because I copied the Java code, where escaped characters in a regex need an additional escape character, making them invalid outside Java. Bu