This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.
Nodes in this category perform string operations involving regular expressions, such as pattern matching and replacement.
Nodes
| Node | Details | Possible Types |
|---|---|---|
| Regex Contains | Checks whether the string contains a match for the given regular expression pattern. Optionally restricts the match to only the start and/or end of the string. | String → BoolString[] → Bool[] |
| Regex Find All | Finds all non-overlapping matches of a regular expression pattern in the string, returning a list of the matched substrings. Each item carries | String → String[]String[] → String[] |
| Regex Replace | Replaces matches of a regular expression pattern in the string. The replacement string can reference captures: | String → StringString[] → String[] |
| Regex Split | Splits a string into a list of substrings pulled from between separator characters as matched by a regular expression. For example, splitting "Three, two, one... LIFTOFF" with pattern | String → String[]String[] → String[] |