array methods
worked on regular expression