Regex: Difference between revisions
Content added Content deleted
Line 58: | Line 58: | ||
| \e || Matches an escape \u001B. |
| \e || Matches an escape \u001B. |
||
|- |
|- |
||
| \040 || Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have only one digit or if they correspond to a capturing group number. |
| \040 || Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have <br />only one digit or if they correspond to a capturing group number. For example, the character \040 represents a space. |
||
|- |
|- |
||
| \x20 || Matches an ASCII character using hexadecimal representation (exactly two digits). |
| \x20 || Matches an ASCII character using hexadecimal representation (exactly two digits). |
||
Line 66: | Line 66: | ||
| \u0020 || Matches a Unicode character using a hexadecimal representation (exactly four digits). |
| \u0020 || Matches a Unicode character using a hexadecimal representation (exactly four digits). |
||
|- |
|- |
||
| \* || When followed by a character that is not recognized as an escaped character, matches that character. For example, \* is the same as \x2A. |
| \* || When followed by a character that is not recognized as an escaped character, matches that character. <br />For example, \* is the same as \x2A. |
||
|} |
|} |
||