This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
Mathematica TutorialFunctions »|Tutorials »

Verbatim Patterns

Verbatim[expr]an expression that must be matched verbatim

Verbatim patterns.

Here the x_ in the rule matches any expression.
In[1]:=
Click for copyable input
Out[1]=
The Verbatim tells Mathematica that only the exact expression x_ should be matched.
In[2]:=
Click for copyable input
Out[2]=