Regular Expression Syntax
Regular Expression
- "Chapter*+?"
- a*b
- [xyz]b
- a?b
- a+b
- [a-c]x
- [a-c]x
- [-ac]x
- [ac-]x
- [^0-9]x
- (ho){2} there
- .abc
- (a|b)+x
Example input that matches
- Chapter*+?
- b, ab, aab, aaab, …
- xb, yb, zb
- b, ab
- ab, aab, aaab, …
- ax, bx, cx
- ax, bx, cx
- -x, ax, cx
- ax, cx, -x
- any non-digit char followed by x
- hoho there
- any (one) char followed by abc
- ax, bx, aax, bbx, abx, bax,...
Previous slide
Next slide
Back to first slide
View graphic version