Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

TRIM string , begins with " OR ends with " OR ends with ,

wonka1234
10 - Fireball

Hi all, do you know how to make a formula that trims a string in this way: TRIM string , begins with " OR ends with " OR ends with ,

 

ie

 

"JOHN SMITH to JOHN SMITH

JOHN SMITH" to JOHN SMITH

JOHN SMITH, to JOHN SMITH

 

I want to eliminate punctuation.

 

Thanks

4 REPLIES 4
atcodedog05
22 - Nova
22 - Nova

Hi @wonka1234 

 

You can use data cleanse tool and remove puctuations

 

Workflow:

atcodedog05_0-1643916702923.png

 

Hope this helps : )

 

binuacs
21 - Polaris

@wonka1234  another option to use the Trim function

binuacs_0-1643916439389.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @binuacs 

 

That makes sense the string value is not 

 

"JOHN SMITH to JOHN SMITH

JOHN SMITH" to JOHN SMITH

JOHN SMITH, to JOHN SMITH

 

by itself 😅 its a sentence.

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @wonka1234 

Cheers and have a nice day!

Labels
Top Solution Authors