OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret strings:

Interpreter["String"]["b19nj2gf"]

Interpreter["String"]["foo"]

Restrict to a pattern:

Interpreter[Restricted["String", "a*"]][{"ab","ba"}]

Set a bound for the length:

Interpreter[Restricted["String", Automatic, 5]]["abcdefg"]

An empty string is an acceptable input for (RefLink[Interpreter, paclet:ref/Interpreter])[(StringTypeLink["String", paclet:ref/interpreter/String])], but not within (RefLink[FormFunction, paclet:ref/FormFunction]), where the empty string and an empty field are considered equivalent:

Interpreter["String"][""]

form=FormFunction[{"a string"->"String"},f];
form[{"a string" -> ""}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])}, {Related Interpreter Types:  (RefLink[TextArea, paclet:ref/interpreter/TextArea])  ▪  (RefLink[TextLine, paclet:ref/interpreter/TextLine])  ▪  (RefLink[URLString, paclet:ref/interpreter/URLString])}})}})

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