The OR operator has instead to be specified with a pipe. The following RegExp: var re = /ab/; means the letter a AND the letter b. It also works with groups: var re = /(co)(de)/; it means the group co AND the group de. Replacing the (implicit) AND with an OR would require the following lines: var re = /a|b/; More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.