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

RegEx Replace

Brad1
11 - Bolide

I want to drop the first or last character only if it is '/' or any special character. 

 

Example:

Tom/Bob

/Bob

/

 

goes to:

 

Tom/Bob

Bob

 

 

Thanks

3 REPLIES 3
jrgo
14 - Magnetar

@Brad1 

 

May not need regex for this. The expression below should work.

TRIM([Field], '/')

Jimmy
Teknion Data Solutions

OllieClarke
16 - Nebula
16 - Nebula
REGEX_REPLACE([field1],'^\W?(.*)\W?$','$1')

This will trim any non alpha-numeric's at the beginning or end of your string

clipboard_image_0.png

Brad1
11 - Bolide

Perfect, thx.

Labels
Top Solution Authors