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
- 86 General
- 13 Training
- 212 Installation / Setup
- 1.2K Flows
- 112 Rules
- 282 Administration
- 216 Portal
- 501 General Q & A
- 719 Forms
- 353 Reports
- 3 Designer Extensions
- 48 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 189 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 71 Repository
- 233 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 36 Version 8
- 143 Lunch And Learn Questions