Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >
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]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team