Fix alternation in startsEnd/endsWith regular expressions.