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.
SOLVED

Regex to parse out text from last parentheses

SurferJim
7 - Meteor

Hi, Thank you in advance for your help. 

 

In the example below, the data may have multiple parenthesis and I would like to break them out into 2 columns where the last column is always the last parenthesis.

 

TitleRegexOut1RegexOut2
Title 1 (A)Title 1(A)
Title 2 (B) (C)Title 2 (B)(C)
Title 3 (D) (E) (F)Title 3 (D) (E)(F)
2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @SurferJim ,

 

Can you try 

 

(.*)\s(.*)

 

AngelosPachis_0-1637532754186.png

 

SurferJim
7 - Meteor

Hi @AngelosPachis ,

Thank you but your solution only works partially in my real data.  I ended up looking for the pattern and insert a | delimiter.  Then I use Text to Column to separate out the string.

 

SurferJim_0-1637533633174.png

 

SurferJim_1-1637533703053.png

 

 

Labels
Top Solution Authors