Professional Documents
Culture Documents
REGULAR EXPRESSION
1 abc… Letters
2 123… Digits
3 \d Any Digit
5 . Any Character
6 \. Period
7 [abc] Only a, b, or c
9 [a-z] Characters a to z
10 [0-9] Numbers 0 to 9
13 {m} m Repetitions
14 {m,n} m to n Repetitions
17 ? Optional character
18 \s Any Whitespace
1 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
19 \S Any Non-whitespace character
2 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
The Dot ( . )
3 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
The ' .. ' matches only a two characters.
Range of digits
4 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
5 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
Range with zero or more Repetitions ' * '
Negated set [^ ]
Plus ( + )
6 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
Acts like a boolean OR. Matches the expression before or after the |.
Optional matches 0 or 1 of the preceding token, effectively making it optional.
Optional ( ? )
Quantifier {m,n}
Matches the specified quantity of the previous token. {1,2} will match 1 to 2.
7 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
Anchors ( ^ $ )
' ^ ' matches the beginning of the string, or the beginning of a line.
' $ ' matches the end of the string, or the end of a line.
8 sairavi.bigdata@gmail.com
99520 29030
BIGDATA
To detect the below string:-
9 sairavi.bigdata@gmail.com
99520 29030