Mega Code Archive

 
Categories / Java Tutorial / Regular Expressions
 

Meta-characters predefined to match specific characters

Meta-Character Matches \\A single backslash \0nAn octal value describing a character, where n is a number such that 0 \0mnnThe character with octal value 0mnn (0 \0nnThe character with octal value 0nn (0 \0xhhThe character with hexadecimal value hh (where 0 \uhhhhThe character with hexadecimal value hhhh (where 0 \tA tab (character '\u0009') \nA newline (linefeed) ('\u000A') \rA carriage-return ('\u000D') \fA form-feed ('\u000C') \aA bell/beep character ('\u0007') \eAn escape character ('\u001B') \cxThe control character corresponding to x, such as \cc is control-c .Any single character