how to see if string is true compared with a pattern

----------------------------------------------------------- String#match       str.match(pattern) => matchdata or nil