OpenersNotesSection(Spacer1)Details

This message is generated when the first argument in a (RefLink[Pattern, paclet:ref/Pattern]) expression cannot be used as the name of a pattern.

Most expressions other than numbers can be used as names of patterns.

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[Pattern::patvar].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

A number cannot be used as the name of a pattern:

{1,2,3}/.{_,Pattern[99,_],_}->{99}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Pattern, paclet:ref/Pattern])}})}})