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

General Discussions

Discuss any topics that are not product-specific here.
解決済み

How to remove Letters at the end of a string?

Sriram_ts03
アトム

Hello Community -

 

Please help me with the below scenario.

 

I would like to get character(letters) removed at the end of a string. If i use Data cleansing tool, it removed the letters in between the string as well.

 

Input                        Output

2102CX746OT       2102CX746

2163BD5120A        2163BD5120

 

Thnx

4件の返信4
Amol_Telore
ボリード

Hey @Sriram_ts03 

 

Here is my solution. 

I have used regex to exclude any letters occurring at the end of the string. Hope this solves your issue.

 

Amol_Telore_1-1661076046880.png

 

 

Emmanuel_G
パルサー

Hi @Sriram_ts03 ,

 

Find attached two more ways to do this : With and without regex formula.

Emmanuel_G_0-1661081747480.png

 

Alteryx_AR
クエーサー

Hey @Sriram_ts03  - Another solution is below. Use substring function. 

 

Alteryx_AR_0-1661436730150.png

 

Alteryx_AR_1-1661436758248.png

Hope this helps you :). 

 

 

 

Sriram_ts03
アトム

Thank you all for the solution. Appreciated. 

ラベル