Escaping is a functionality in Regex that allows you to turn Regular Characters into Metacharacters and vice versa.

In BRE escaping is done by prepending "" to the character.

Example

  • "" matches an actual period
  • "" matches word characters

Note: Escaping is critical for matching special characters like ., *, ?, etc.