well as any string containing the letter "a" Weird characters like ^,$,?,.,/,\,[,],{,},(,),+, and * need a special \ to make it literal. Reason being is that these characters are special in regular expression syntax. In order to match a literal ? the regular expression would have to look like this: /\?/