Cast your vote for the official 2025 Inspire Pin! Designs were submitted by fellow Community members and reflect the creativity and passion of Alteryx users across the globe. Vote now!
Free Trial

Alteryx Designer Desktop Discussions

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

Extract data from inside parentheses that also has nested data inside parentheses

krandol5
7 - Meteor

Okay difficult to explain so I apologize in advance if this does not come across well.

In my workflow I am extracting data from inside parentheses using this RegEx code:

 

.*\((.*)\).*

 

I thought it was working perfect, but I discovered there was an error because some of my data in parentheses also contains a parentheses with data. It's only grabbing the nested parentheses. So, how can I grab the data in parentheses INCLUDING the nested parentheses?

Here is an example:

DUPONT, EDWARD C. JR (Board Member - Treasurer (part year))

I want to extract the entire parentheses: (Board Member - Treasurer (part year))

 

Currently with the above RegEx code it's coming out like this, only grabbing the inner parentheses:

Organization                                         EIN            Name                                   Title
MARTINS POINT HEALTH CARE INC 010353275 DUPONT, EDWARD C. JR) part year)

I'm attaching my workflow here, I will probably have some more questions while working on this workflow in the future. Thank you in advance for the assistance!

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@krandol5 
Since your input data in missing from the workflow you provided, can you try the lazy mode for the part you dont want.

Qiu_0-1615521932420.png

 

krandol5
7 - Meteor

Exactly what I needed, thank you!

Qiu
21 - Polaris
21 - Polaris

@krandol5 
Great and thank you also for the accept mark. 😁

Labels
Top Solution Authors