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

Only including data after a certain character appears in the Data

NRD
8 - Asteroid

Hello,

 

I have a dataset that looks like the below:

 

John Smith (RC12345)

 

I want to create a new column with only RC12345 from the data above.

 

How would I go about doing this?

2 REPLIES 2
T_Willins
14 - Magnetar
14 - Magnetar

Hi @NRD,

 

You can use a RegEx parse to do this with the following expression:  .*?\((.*?)\)

.*?   all characters until

\(     open parenthesis - the \ (escape) is required as ( is a Perl special character and the \ is required to indicate find the character and not use it as a special character

(.*?)   return all following characters until

\)    close parenthesis - same escape required as above

 

RegEx Parse.png

 

NRD
8 - Asteroid

@T_Willins Thank you very much, this works!

Labels
Top Solution Authors