Mega Code Archive

 
Categories / JavaScript Tutorial / Regular Expressions
 

All the characters that require a backslash character to be taken literally within a pattern

Character Description \fForm feed \nNewline \rCarriage return \tTab \vVertical tab \/Forward slash (/) \\Backward slash (\) \.Period (.) \*Asterisk (*) \+Plus (+) \?Question Mark (?) \|Horizontal bar (|) \(Left parenthesis ( \)Right parenthesis ) \[Left bracket ([) \]Right bracket (]) \{Left curly brace ({) \}Right curly brace (}) \XXXASCII character represented by the octal number XXX \xHHASCII character represented by the hexadecimal number HH \cXThe control character represented by X