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.

Remove specific text from an output

bliffick
7 - Meteor

Hello,

 

I am new to Alteryx and learning the ropes.  I am trying to remove specific wording in a Column.  The wording changes as this is a large data set.  I currently my the below formula, but wanted to know is there a wildcard that I can use?  

Alteryx Snip.png

Trim([SONAR_DEF],"rev.")

7 REPLIES 7
MilindG
12 - Quasar

MilindG_0-1665593339609.png

 

bliffick
7 - Meteor

replace([SONAR_DEF], 'rev.','')

 

This only removed the "rev" portion.  I was looking more to remove the entire rev.XX wording.  

Garabujo7
Alteryx
Alteryx

Hello @bliffick ,

 

For that, you may use a simple regex expression.

 

rev.\d{3}

 

It removes any 3 digits coming after rev.

 

Garabujo7_0-1665594329816.png

 

Gabriel

bliffick
7 - Meteor

unfortunately that did not work Either.  Is there a wildcard that we can place to cover the various Versions?

 

Example 

Rev.011

Rev.,001

Rev.010

 

Ultimately I am just wanting the date left over.  

 

MilindG
12 - Quasar

Okay I have attached a workflow that has couple different ways. See if that works.

MilindG
12 - Quasar

@bliffick  Check out the workflow I have attached.

bliffick
7 - Meteor

I appreciate everyones responses, I found a way to do it outside of Formulas.  In the wanted field I changed the View to Date.  This removed the REV.XXX

bliffick_0-1665595532083.png

 

 

Labels
Top Solution Authors