You must escape the curly bracket or else it is interpreted as the start of a match count in older regexp engines. Newer regexp engines seem to be more context-aware.