Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Find Records That End w/ a Letter

hellyars
13 - Pulsar

 

I have a text field.  It is primarily consists of numbers (in a vstring).  But, a small number end in a letter -- to designate something being added.

 

I want to search the field and find only the entries that end in a letter.  How?

 

Line NumberFind
1 
1a1a
2 
43 
43a43a
43b43b
100 
101 
128 
128X128X
129 
  
  
3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @hellyars 

 

Use formula like below. By default, regex is case insensitive hence \u check for any letter irrespective of case.

 

 

IIF(REGEX_Match([Line Number], ".+\u"), [Line Number], Null())

 

 

Workflow:

atcodedog05_0-1634908312643.png

 

Hope this helps : )

 

patrick_digan
17 - Castor
17 - Castor

@hellyars You could also take advantage of the way alteryx converts strings to numbers. It would drop the letters at the end. A formula like this would return false for the records you're interested in

tostring(tonumber([Line Number]))=[Line Number]

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @hellyars 

Please vote and support our amazing Alteryx Community to win the Best User Group Program. Because we know it is ‌‌: )
https://community.alteryx.com/t5/General-Discussions/Lets-Vote-for-Our-Alteryx-community/td-p/836963 

Cheers and have a nice day!

Labels