Regexp - Backslash

Regexp

About

Backslash is the general escape meta-character with several uses. It can:

  • Stand for itself,
  • Quote the next character,
  • Introduce an operator,
  • Do nothing

Use Case

Escape Meta_character

Regexp - Escape Character

Non-printing characters

see Regexp - Non-printing characters

Generic character types

The third use of backslash is for specifying generic character types.

Simple Assertions

It can also stands for simple assertion

Documentation / Reference





Discover More
Regexp
Multilingual Regular Expression Syntax (Pattern)

Regular expression are Expression that defines a pattern in text. This is therefore a language that permits to define structure of a text. They are a mathematically-defined concept, invented by Stephen...
Regexp
Regexp - Assertion (Condition)

An assertion is an assertion that specifies a condition that has to be met at a particular point in a match, without consuming any characters from the subject string. simple assertion designed...
Regexp
Regexp - Character Class (Character Set)

A character class defines a domain of permitted characters. character set ASCII characters with square brackets where: [ is the start character class definition ] is the end character class...
Regexp
Regexp - Escape Character

The escape character in a regular expression is the backslash. It's needed when the regular expression want to design a meta characters in a regular expression. It takes away any special meaning that...
Regexp
Regexp - Non-printing characters

encoding non-printing characters Encoding Description \a alarm, that is, the BEL character (07hex 07) \cx “control-x”, where x is any character \e escape (1Bhex 1B) \f formfeed (hex...
Regexp
Regular Expression - Backslash Generic Character Class (shorthand)

The use of backslash are called shorthand) and specifies: a generic character class of characters or a single character (ie matcher) The syntax of a shorthand in a regular pattern. where: ...
Regexp
Regular Expression - Character Matcher

Character matcher matchesone characters in a regular expression pattern. For multiple character match, see Symbol Matches x The character x \\ The backslash character \0n The character with...



Share this page:
Follow us:
Task Runner