add another method using regular expression