Output Regex match groups as strings?
I've tried using the Regex Get Matches and Regex Get Matches Advanced steps to output multiple match groups as separate strings, but I only get the entire matched input string as my output.
As an example, with an input like this I'd want to get the 2 digit number at the end and the rest of the string as 2 separate strings:
dddwwwwbbbbbbb23
I've tried using this regex pattern but it hasn't worked:
(.*\D)(\d+)$
Comments
-
The Regex Get Matches and Regex Get Matches Advanced steps will only output inputs that match the given pattern.
To get the individual match groups as strings you can use the Regular Expression step found in the toolbox under Data > Text.
As seen in the below screenshots, you can provide the regular expression pattern, the input string, set options, and it will output the match groups as distinct strings:
Please see the below documentation for additional information on Regular Expression steps in Decisions:
https://documentation.decisions.com/step-library/docs/en/regular-expression-steps
Howdy, Stranger!
Categories
- 4.4K All Categories
- 78 General
- 13 Training
- 209 Installation / Setup
- 1.1K Flows
- 110 Rules
- 270 Administration
- 213 Portal
- 497 General Q & A
- 709 Forms
- 345 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 186 Pages
- 5 Process Mining
- New Features
- 186 Datastructures
- 70 Repository
- 229 Integrations
- 29 Multi-Tenant
- 27 SDK
- 81 Modules
- 59 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 143 Lunch And Learn Questions