We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Add space before bracket

HW1
9 - Comet

I have a column with names as  'BP Connect Ascot(WA)' and correctly as ''BP Bathurst (Stewart St)' 

I want them to be consistent with a space before the bracket like 'BP Connect Ascot (WA)' and ''BP Bathurst (Stewart St)' 

How can I do that?

Thanks

5 REPLIES 5
Qiu
21 - Polaris
21 - Polaris

@HW1 

Like this?

CaptureV1.PNG

HW1
9 - Comet

That is not the solution I am looking for as I have 'BP Bathurst (Stewart St)' coming in correctly which will turn out to 'BP Bathurst  (Stewart St)' Which is not what I want.

MarqueeCrew
20 - Arcturus
20 - Arcturus

Regex_Replace([field],"(.*\S)(\(.*)",'$1 $2')

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
HW1
9 - Comet

It is doing nothing

Qiu
21 - Polaris
21 - Polaris

@HW1 
Sorry. I misunderstood. This should work.

CaptureV4.PNG

Labels
Top Solution Authors