Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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
20 - Arcturus
20 - Arcturus

@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
20 - Arcturus
20 - Arcturus

@HW1 
Sorry. I misunderstood. This should work.

CaptureV4.PNG

Labels