Alteryx Designer Desktop Discussions

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

RegEX Parse - Tokenizer

dhakim1996
8 - Asteroid

Hi, 

 

I am trying to use regex tokenizer function to remove ":" from a specific column. 

 

InputDesired Results
Administrative Expenses:Dues and subscriptionsAdministrative Expenses Dues and subscriptions

 

Could someone please let me know what should be in this "Regular Expression"

dhakim1996_0-1658390583319.png

 

Much appreciated. Thank you!

5 REPLIES 5
DataNath
17 - Castor

Hey @dhakim1996, if you're just wanting to replace the : then you don't need to use RegEx - you can just use the replace() function like so:

 

 

Replace([Input], ':', ' ')

 

 

DataNath_0-1658391157439.png

 

Edit: If you do insist on using RegEx, then you'd need the tool in the 'Replace' mode and just type in : as your target and a space as the replacement

 

DataNath_0-1658391275980.png

dhakim1996
8 - Asteroid

Hi @DataNath I would like to remove ":" and also separate it out into new columns like this. Any possible solution?

 

InputDesired Results
Administrative Expenses:Dues and subscriptionsAdministrative ExpensesDues and subscriptions
DataNath
17 - Castor

Oh I see @dhakim1996! In that case, I would just use the Text to Columns tool, with : as the delimiter and the number of rows as 2:

 

DataNath_0-1658391637719.png

PhilipMannering
16 - Nebula
16 - Nebula

The tokenize expression would be `[^:]+`, but do it @DataNath's way.

binuacs
20 - Arcturus

@dhakim1996 one way of doing this with the tokenize method

binuacs_0-1658443584573.png

 

Labels