implementing regular expression in ci performance