zhuang@linux:~/blog/learn-some-regular-expression/$ cat
Learn Some Regular Expression
Regular expressions use a small set of special characters to describe text patterns. This article covers the wildcard and the operators used to control how many times a pattern may appear.
Counting and Wildcards
| Regex | Match |
|---|---|
| * | zero or more occurrences of the previous char or expression |
| + | one or more occurrences of the previous char or expression |
| ? | zero or one occurrence of the previous char or expression |
| {n} | exactly n occurrences of the previous char or expression |
| . | any single char |
| .* | any string of zero or more chars |
zhuang@linux:~/blog/learn-some-regular-expression/$ comments