It depends which of the nodes CURLYX, WHILEM, CURLYM, CURLYN, CURLY, STAR, PLUS were used by the regular expression compiler. This is a measure of how "naughty" you expression is so using anything besides (?: exact string )+ is edging into a realm where + has a limit.