Argument shapes
Set _fn to the function name and _args to its settings. Selector and regular-expression functions use an array. join and select_nth take a scalar value. Functions without settings omit _args. Wrong argument shapes can return null with parser status 12005 and a warning.
HTML functions
| Function | Arguments | Result |
|---|---|---|
| xpath / xpath_one | Array of XPath expressions | All matches or the first match; XPath 1.0 and XSLT 1.0. |
| css / css_one | Array of CSS expressions | HTML elements, or the first element. |
| element_text | None | Trimmed text of an HTML element. |
Scroll horizontally to read all columns.
String functions
| Function | Arguments | Result |
|---|---|---|
| amount_from_string | None | First numeric amount as a float. |
| amount_range_from_string | None | All numeric amounts as floats. |
| join | Separator string, for example " " | One string from a string list. |
| regex_find_all | Array: pattern | All matching strings. |
| regex_search | Array: pattern and optional group number | Selected match or group. |
| regex_substring | Array: pattern and replacement | String with matching parts replaced. |
Scroll horizontally to read all columns.
Arrays and conversions
| Function | Arguments | Result |
|---|---|---|
| length | None | Array length. |
| select_nth | Integer index | Selected item; negative indices count from the end. |
| convert_to_float | None | String or integer converted to a float. |
| convert_to_int | None | String or float converted to an integer. |
| convert_to_str | None | Numeric input converted to a string. |
Scroll horizontally to read all columns.
Aggregate functions
| Function | Arguments | Result |
|---|---|---|
| average | Optional rounding precision | Mean of numeric values. |
| max / min | None | Largest or smallest numeric value. |
| product | None | Product of numeric values. |
Scroll horizontally to read all columns.