added regular expression feature