Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Extracting only the Letter RU from the column to another column

sriniprad08
11 - Bolide

Hi Team,

Hope you are well. I have column with text (which ends with RU and which doesn't).

i want a new column with all the text and the last two RU in another column.

 

Please let me know,

 

thanks,

Sri

sriniprad08_0-1679314563156.png

 

10 REPLIES 10
alexnajm
17 - Castor
17 - Castor

Hi @sriniprad08,

 

Could you clarify the logic for row 7? It does not end with "RU" but still has "RU" in the Test 2 column.

 

-Alex

BRRLL99
11 - Bolide

Please check this regex expression

^(\w{8,11})(\w{0,2})$

Zok
8 - Asteroid

Hello

 

You can use these formulas

Zok_1-1679315189241.png

 

 

Zok_0-1679315178632.png

 

sriniprad08
11 - Bolide

Hi @Zok ,

 

Thank you so much. this is great. But one issue its also truncating the RU in the middle  of the text. Only it has to truncate the last two letter.

sriniprad08_0-1679316356212.png

 

sriniprad08
11 - Bolide

Hi @alexnajm ,

 

Sorry that was a type. There shouldnt be RU for that text.

 

Thanks for pointing out.

ShankerV
17 - Castor

Hi @sriniprad08 

 

One way of doing this.

 

ShankerV_0-1679316551257.png

 

Many thanks

Shanker V

sriniprad08
11 - Bolide

@Zok 

sriniprad08_0-1679316656208.png

 

BS_THE_ANALYST
14 - Magnetar
14 - Magnetar

@sriniprad08 one way:

BS_THE_ANALYST_0-1679316807346.png

 

 

All the best,
BS

LinkedIN

Bulien
ShankerV
17 - Castor

Hi @sriniprad08 

 

Hope you checked the previous response. 

Hope that gave the expected result as you have posted.

 

ShankerV_0-1679316842564.png

 

Many thanks

Shanker V

 

Labels
Top Solution Authors