OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret single lines of text:

Interpreter["TextLine"]["To be, or not to be--that is the question"]

Interpreter["TextLine"]["apple \nbee \ncat"]

Restrict to a given pattern:

Interpreter[Restricted["TextLine","ab"~~_]]["Lorem ipsum dolor sit amet"]

Interpreter[Restricted["TextLine","ab"~~__]]["abcdefg"]

Set a bound for the length:

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

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

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