Add regular expression method