Format text
Spintax, templates, regex, split, case, slugs and other text helpers
Parameters
Section titled “Parameters”operation
Operation · string · required · default spintax · one of spintax, template, regexExtract, regexReplace, regexTest, split, join, trim, case, slug, truncate, randomLine, extractEmails, extractUrls, extractPhones, removeAccents
What to do with the text: spintax, regex extract / replace, split, case, slug, extract emails / URLs / phones, remove accents…
input
Text · string · required
The text to work on, usually an expression such as {{ $json.message }}.
pattern
Pattern · string · optional
A regular expression (for the regex operations).
Shown when operation is regexExtract, regexReplace, regexTest.
flags
Regex flags · string · optional · default “
Shown when operation is regexExtract, regexReplace, regexTest.
all
All matches · boolean · optional · default true
Shown when operation is regexExtract.
replacement
Replace with · string · optional
Shown when operation is regexReplace.
separator
Separator · string · optional · default ,
Shown when operation is split, join.
caseMode
Case · string · optional · default lower · one of upper, lower, title, sentence, camel, snake, kebab
Shown when operation is case.
length
Length · integer · optional · default 100 · range 1 – …
Shown when operation is truncate.
suffix
Suffix · string · optional · default …
Shown when operation is truncate.
seed
Randomness · object · optional · default {"mode":"random"}
Shown when operation is spintax, randomLine.
Fields:
mode(string) Modevalue(integer) Value
into
Into field · string · optional · default text
The field the result is written to.
Outputs
Section titled “Outputs”main