Wolfram: String Template (format)
StringTemplate[template][args]
-
Returns a string, with placeholders, that are filled by args
template is a string. In this string, the following are special:
``
→ a placeholder.`name`
→ a named placeholder. (used when the args is Association (Key Value List) )
StringTemplate[ "`` plus `` is ``"][1, 2, 3] (* 1 plus 2 is 3 *)
xx = Association[ "a" -> 1, "b" -> 2, "c" -> 3]; StringTemplate[ "`a` plus `b` is `c`"][ xx ] (* 1 plus 2 is 3 *)
WolframLang String
- Wolfram: String
- Wolfram: String Functions
- Wolfram: Get SubString, by Index
- Wolfram: Get SubString, by Pattern
- Wolfram: Delete SubString
- Wolfram: String Split
- Wolfram: String Join
- Wolfram: String Insert
- Wolfram: Convert String
- Wolfram: String Template (format)
- Wolfram: String Match
- Wolfram: String Replace
- Wolfram: Regular Expression
- Wolfram: String Expression
- Wolfram: StringExpression Pattern Syntax
- Wolfram: RegularExpression vs StringExpression