skip navigation
 
 
 
WebInSight

List of Basic Regular Expressions

Here is a list of special regular expression characters with examples. More examples can be found here.

Meta Character Function Example
* Zero or more of the previous character lo*ng: Matches "lng", "long", "looooooooooong"
? Zero or one of the previous character George W? Bush: Matches "George Bush" and "George W Bush"
+ One or more of the previous character fo+d: Matches "fod", "food", "fooooooooood"
. Any single character tre.: Matches "tree", "trek", "tred"
[] Any character from the set the[emn]: Matches "thee", "them", "then"

 
This work is supported by the following National Science Foundation Grants: CNS-087508, CNS-0549481, IIS-0811884, IIS-0415273
Send comments to Richard Ladner