liveBook · Manning

Metacharacter

As explained in Secrets of the JavaScript Ninja, Second Edition

A character in a regular expression that has a syntactic meaning rather than being matched literally.

A metacharacter in a regular expression carries syntactic meaning rather than matching literally. section 10.2

The refresher names these regular-expression characters:

  • ^, $, ?, +, *, braces, -, |, backslash, and parentheses. section 10.2

How Secrets of the JavaScript Ninja, Second Edition covers it

How deep it goes
Surveys common regular-expression characters but stops short of an exhaustive tutorial.
Examples
Names ^, $, ?, +, *, braces, -, |, backslash, and parentheses as examples.
What you can do after
Understand that listed characters carry regular-expression syntax rather than matching literally.
How it connects
Connects metacharacters to regular expressions and syntax characters such as ^, $, ?, +, *, braces, -, |, backslash, and parentheses.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secrets of the JavaScript Ninja, Second Edition. The section links point to the parts of the book it draws on.