Skip to main content

Substring

Return characters from the middle of text.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName of the column(s) to edit.string, integer, array—Yes
outputName of the output column(s).string, array, nullnullNo
Options
startThe position of the first character to select. If ommited will start from the beginning and length must be provided.integer, nullnullNo
lengthThe length of the string to select. If ommited will select to the end of the string and start must be provided.integer, nullnullNo
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No

Examples​

wrangles:
- select.substring:
input: Column
output: Result
start: 2
length: 3
Column
pudding
Result
udd
wrangles:
- select.substring:
input: Column
output: Result
start: 2
Column
pudding
Result
udding
wrangles:
- select.substring:
input: Column
output: Result
length: 3
Column
pudding
Result
pud
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountNo
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID60
Catalog keyselect.substring
Recipe keyselect.substring
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceselect
Documentation groupselect
AliasesNone
Runtime symbolwrangles.recipe_wrangles.select.substring
Legacy UUID8befddf8-602e-4fa9-8f16-4c547210ebec

Sources