Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask 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
binuacs
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! @binuacs @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

 

binuacs
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