What are special characters used in
regular expression?
Ans.-
Special character is a character with the specified meaning.
1.)
[]
= It represents the set of characters. Eg= “[a-z]”
2.)
\
= It represents the special sequence. Eg=”\r”
3.)
$
= It represents the pattern present at the end of the string. Eg= “point”
4.)
+
= It represents one or more occurrences of a pattern in the string. Eg=
“hello+”
5.)
()
= capture and group