Verbatim[expr]
represents expr in pattern matching, requiring that expr be matched exactly as it appears, with no substitutions for blanks or other transformations.


Verbatim
Verbatim[expr]
represents expr in pattern matching, requiring that expr be matched exactly as it appears, with no substitutions for blanks or other transformations.
Examples
open all close allBasic Examples (2)
Scope (1)
Transform a rule into a list of rules with special cases:
This rule transforms an expression into its square:
Use Verbatim to make rules specific for number types:
The list of specific rules only transforms integers, reals, and rationals:
See Also
Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), Verbatim, Wolfram Language function, https://reference.wolfram.com/language/ref/Verbatim.html.
CMS
Wolfram Language. 1996. "Verbatim." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Verbatim.html.
APA
Wolfram Language. (1996). Verbatim. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Verbatim.html
BibTeX
@misc{reference.wolfram_2025_verbatim, author="Wolfram Research", title="{Verbatim}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/Verbatim.html}", note=[Accessed: 10-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_verbatim, organization={Wolfram Research}, title={Verbatim}, year={1996}, url={https://reference.wolfram.com/language/ref/Verbatim.html}, note=[Accessed: 10-August-2025]}