Regex: Difference between revisions

Line 8:
{| class="wikitable"
|-
!colspan=2| Metacharacters Defined !!colspan=2| Metacharacter Examples
|-
|! MChar ||!! Definition ||!! Pattern ||!! Sample Matches
|-
| ^ || Start of a string. || ^abc || abc, abcdefg, abc123, ...
Line 18:
| . || Any character (except \n newline) || a.c || abc, aac, acc, adc, aec, ...
|-
| <nowiki>|</nowiki> || Alternation. || <nowiki>bill|ted</nowiki> || ted, bill
|-
| {...} || Explicit quantifier notation. || ab{2}c || abbc