In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Retain strings after the special character "/"

jatienza
8 - Asteroid

Hi,

 

Need help in retaining strings after the special character "/" in the left-most portion, please data below.

 

Raw data:

http://fr.company.com/company/class-a-123

http://md.company.com/company/class-b-2356

 

Output:

class-a-123

class-b-2356

 

Thanks,

Jaime

7 REPLIES 7
binu_acs
21 - Polaris

@jatienza One way of doing this

 

binuacs_0-1675720544578.png

 

ShankerV
17 - Castor

Hi @jatienza 

 

Please find the below expected output.

 

ShankerV_0-1675720610224.png

 

Many thanks

Shanker V

jatienza
8 - Asteroid

Thanks! @binu_acs @ShankerV 

ShankerV
17 - Castor

Hi @jatienza 

 

Can be used only one tool also.

 

ShankerV_0-1675720799233.png

 

ShankerV_1-1675720809040.png

 

Many thanks

Shanker V

jatienza
8 - Asteroid

By the way, how about if the raw data has "/" at the end? please see below

 

Raw data:

http://fr.company.com/company/class-a-123

http://md.company.com/company/class-b-2356/

 

Output:

class-a-123

class-b-2356

 

Thanks.

ShankerV
17 - Castor

Hi @jatienza 

 

Please find the expected output.

 

ShankerV_0-1675721347388.png

 

binu_acs
21 - Polaris

@jatienza The TrimRight function will remove the extra \ at the end of the path before applying the regex

 

binuacs_0-1675721493108.png

 

Labels
Top Solution Authors