GO-V.ORG
As seen in

Metacharacter

A metacharacter is a character that has a special meaning to a computer program, such as a shell interpreter or a regular expression (regex) engine.[src] For instance, in XML, the character is interpreted not as ordinary text (in which it would be the less-than sign), but rather as a metacharacter signalling the beginning of an XML tag.[src]

A metacharacter is a character that has a special meaning to a computer program, such as a shell interpreter or a regular expression (regex) engine.[src] For instance, in XML, the character is interpreted not as ordinary text (in which it would be the less-than sign), but rather as a metacharacter signalling the beginning of an XML tag.[src] ==In POSIX extended regular expressions== In POSIX extended regular expressions, there are 15 metacharacters that must be escaped — preceded by a backslash ( \ ) — in order to drop their special meaning and be treated literally inside an expression: opening and closing square brackets ( [ and ] ); backslash ( \ ); caret ( ^ ); dollar sign ( $ ); period/full stop/dot ( .[src] ); vertical bar/pipe symbol ( | ); question mark ( ?[src] ); asterisk ( * ); plus and minus signs ( + and - ); opening and closing curly brackets/braces ( { and } ); and opening and closing parentheses ( ( and ) ).[src] For example, to match the arithmetic expression (1+1)*3=6 with a regex, the correct regex is \(1\+1\)\*3=6 ; otherwise, the parentheses, plus sign, and asterisk will have special meanings.[src] ==Other examples== Some other characters may have special meaning in some environments.[src] In some Unix shells the semicolon (";") is a statement separator.[src] In XML and HTML, the ampersand ("&") introduces an HTML entity.[src] It also has special meaning in MS-DOS/Windows Command Prompt.[src] In some Unix shells and MS-DOS/Windows Command Prompt, the less-than sign and greater-than sign (" ") are used for redirection and the backtick/grave accent ("`") is used for command substitution.[src] In many programming languages, strings are delimited using quotes (" or ').[src] In some cases, escape characters (and other methods) are used to avoid delimiter collision, e.g.[src] "He said, \"Hello\"".[src] In printf format strings, the percent sign ("%") is used to introduce format specifiers and must be escaped as "%%" to be interpreted literally.[src] In SQL, the percent is used as a wildcard character.[src] In SQL, the underscore ("_") is used to match any single character.[src] ==Escaping== The term "to escape a metacharacter" means to make the metacharacter ineffective (to strip it of its special meaning), causing it to have its literal meaning.[src] For example, in PCRE, a dot (".") stands for any single character.[src] The regular expression "A.C" will match "ABC", "A3C", or even "A C".[src] However, if the "." is escaped, it will lose its meaning as a metacharacter and will be interpreted literally as ".", causing the regular expression "A\.C" to only match the string "A.C".[src] The usual way to escape a character in a regex and elsewhere is by prefixing it with a backslash ("\").[src] Other environments may employ different methods, like MS-DOS/Windows Command Prompt, where a caret ("^") is used instead.[src] ==See also== Markup language ==References==[src]

26 sentences · 26 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Metacharacter." encyclopegia.org, 2026, https://encyclopegia.org/wiki/metacharacter. Accessed 04 December 2026.

Chicago

"Metacharacter." encyclopegia.org. Accessed December 4, 2026. https://encyclopegia.org/wiki/metacharacter.

APA

encyclopegia.org. (2026). Metacharacter. Retrieved December 4, 2026, from https://encyclopegia.org/wiki/metacharacter

Accessed December 4, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1336565274 · 0.5 · snapshot enwiki-001336565274

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.