Free Trial

Alteryx Designer Desktop Discussions

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

RegEx Tool

Sclifton1098
7 - Meteor

Hi all, 

 

I need some assistance removing a word from a column using the Regex tool?

 

Thank you,

Stephanie

19 REPLIES 19
Luke_C
17 - Castor
17 - Castor

Hi @Sclifton1098 

 

Can you post a sample of the data? 

IraWatt
17 - Castor
17 - Castor

Hey @Sclifton1098,

Would you be able to give a couple examples of the text and the word you want to extract? If you want to learn more about Regex the community has some really quick interactive videos on getting to grips with it here https://community.alteryx.com/t5/Interactive-Lessons/tkb-p/interactive-lessons/label-name/Parsing%20...

 

Sclifton1098
7 - Meteor

Hi all, 

 

Below is a screenshot of what the assignment is asking. I have to remorve the PettyCash from the detail column to expense those accounts.

Sclifton1098_0-1667235920733.png

Thank you!

DataNath
17 - Castor
17 - Castor

@Sclifton1098 if you just need to remove 'a word' rather than a certain pattern, would a regular string function like Replace() not suffice? Here we want to remove the word 'please' and so we just replace it with nothing:

 

DataNath_0-1667236047820.png

Sclifton1098
7 - Meteor

Hi all, 

 

Below is the data.

 

Sclifton1098_2-1667236241846.png

 

 

 

 

Luke_C
17 - Castor
17 - Castor

@Sclifton1098 

 

The description and link in your image make me think a filter tool is more appropriate, however without seeing the actual data the ask is still unclear

Luke_C
17 - Castor
17 - Castor

Hi @Sclifton1098 Are you looking to remove the PettyCash entries? I presume they would not be capitalized.

 

You could use a filter tool with a statement like: !Startswith([Detail],"PettyCash")

Sclifton1098
7 - Meteor

We are trying to exclude the data that is petty Cash amounts that are in the detail column, we are trying to remove those rows. 

Sclifton1098
7 - Meteor

Thank you! My professor is requiring the use of Regex tool.

Labels
Top Solution Authors