The following table contains examples of extended regular expressions. A dot (.) represents the space character.
Use this expression | If you want to match |
---|---|
[1-9][0-9]\{2\}-[0-9]\{4\} | A local telephone number in the United States or Canada |
.? | Zero or one spaces |
.+ | One or more spaces |
March|April | March or April |
(Mar(ch)?)|(Apr(il)?) | March, Mar, April or Apr |
[Ss]tor(y|ies) | Story, story, Stories or stories |