Regexp flag fixed