Israel Science and Technology Directory

InternetApache server

In htaccess, the backlash (\) is used in writing control characters such as line feed that cannot be entered directly via the keyboard. Javascript uses the same definitions listed in the Table below.

Escape characters
\Backslash - Used in defining escape characters
\\Backslash
\fForm feed
\nNew line
\rCarriage return
\sAny white space including space, tab, form-feed, line feed.
\tTab character
\'Single quote
\"Double quote
\xhhhh marks two hexadecimal digits

The following characters have special meaning within a regular expression.
. ^ $ * + - ? ( ) [ ] { } \ | — /
To reference the literal character, it must be "escaped" within the regular expression