new regex flags code