Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Alteryx REGEX Tool Formula Help

BobbyQ
7 - Meteor

Hi I can't figure out why this REGEX Tool formula isnt working in Alteryx when I have tested it out with success on a regex builder program.
Not sure if REGEX_MATCH in Alteryx functions differently somehow? Essentially I am trying to get the last occurrence of a string in a concatenation delimited by spaces.


Desired result: "CK*1140*H*QK*FF*RXQ*25/32*DNDCDDL*DDDD*DDDOSPOLY*0*1111"

 

Any help would be greatly appreciated. Thank you

2 REPLIES 2
jrlindem
11 - Bolide

@BobbyQ do you need to specifically use REGEX?  You might, in your real world need, but if not...  here's an idea to try out.

 

If you only just need the last string, regardless of it's format and how many concatenations there are, consider reversing the string, parsing it, and reversing back the first parsed response like this (and attached):

jrlindem_0-1758902555549.png


It's "creative" but it has its place, especially if you don't know how many partitions there will be in the concatenation.

Hope this helps, -Jay

binuacs
21 - Polaris

@BobbyQ , you can also try a different regex to get the result

binuacs_0-1758966746092.png

 

Labels
Top Solution Authors