OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (4)

OpenersExampleSection0(Spacer1)Basic Examples  (4)

Interpret digits:

Interpreter["Digit"]["4"]

Restrict to digits below 5:

Interpreter[Restricted["Digit",5]]["1"]

Restrict to even digits:

Interpreter[Restricted["Digit",{0,9,2}]]["3"]

Interpret sequences of 3 digits:

Interpreter[Restricted[DelimitedSequence["Digit",""],3]]["527"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])}, {Related Interpreter Types:  (RefLink[Integer, paclet:ref/interpreter/Integer])  ▪  (RefLink[Number, paclet:ref/interpreter/Number])  ▪  (RefLink[PhoneNumber, paclet:ref/interpreter/PhoneNumber])  ▪  (RefLink[CreditCardNumber, paclet:ref/interpreter/CreditCardNumber])  ▪  (RefLink[SemanticInteger, paclet:ref/interpreter/SemanticInteger])  ▪  (RefLink[ComputedInteger, paclet:ref/interpreter/ComputedInteger])  ▪  (RefLink[SemanticNumber, paclet:ref/interpreter/SemanticNumber])  ▪  (RefLink[ComputedNumber, paclet:ref/interpreter/ComputedNumber])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})