ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Regex to parse out text from last parentheses

SurferJim
メテオール

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件の返信2
AngelosPachis
ネビュラ

Hi @SurferJim ,

 

Can you try 

 

(.*)\s(.*)

 

AngelosPachis_0-1637532754186.png

 

SurferJim
メテオール

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

 

 

ラベル
トップのソリューション投稿者