/Lisa|Bart/ #matches either Lisa or Bart by using the | (or) operator /Lisa\sBart/ #matches Lisa then a whitespace character and then Bart /\w{5}/ #matches 5 alphanumeric/word characters in a row /sub\s+\w*{/ #matches the word sub then one or more spaces and then #0 or more alphanumeric characters followed by a { /\d{3}-\d{4} #matches a phone number of the form 555-1234 #3 numbers followed by a - followed by 4 numbers