"String" (Interpreter Type)
-
See Also
- Interpreter
- Restricted
- Failure
-
- Interpreter Types
- TextArea
- TextLine
- URLString
- Related Guides
-
-
See Also
- Interpreter
- Restricted
- Failure
-
- Interpreter Types
- TextArea
- TextLine
- URLString
- Related Guides
-
See Also
"String" (Interpreter Type)
String in a standard format.
Details
- "String" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "String" does not require connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["String",{{choice1,…}}] one among choices Restricted["String",pattern] a string matching pattern Restricted["String",pattern,length] a string matching pattern and shorter than length
Interpretation
- "String" yields the input string unchanged.
Examples
Basic Examples (3)
Interpreter["String"]["b19nj2gf"]Interpreter["String"]["foo"]Interpreter[Restricted["String", "a*"]][{"ab", "ba"}]Interpreter[Restricted["String", Automatic, 5]]["abcdefg"]An empty string is an acceptable input for Interpreter["String"], but not within FormFunction, where the empty string and an empty field are considered equivalent:
Interpreter["String"][""]form = FormFunction[{"a string" -> "String"}, f];
form[{"a string" -> ""}]Related Guides
History
Introduced in 2014 (10.0)