This could fix the issue 3964 by working around the bug in old re2 (from facebook and from axjak). I do not have any of them installed. Could somebody test please? The test regexp is taken from the issue. Maybe a simpler one would work as well. Should we warn the user when he uses an old re2 version?