Alteryx Designer Desktop Discussions

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

Regrx match if the 3rd character of the string is Alpha

Sean1963
5 - Atom

 

The string function I am using is: REGEX_Match([Serial Number], "^.{2}[a-zA-Z]") 

It returns False for numbers like 17D6Q856 where I am pretty sure it should return True.  I am willing to accept that my regular expression expertise might be at fault.

 

Thank you very much for any assistance.

 

2 REPLIES 2
estherb47
15 - Aurora
15 - Aurora

Hi @Sean1963 

 

Regex_Match has to match to the entire string. The statement you wrote is only for the first 3 characters. Try adding a ".+" to the end to capture the rest of the string as well.

 

Let me know if that helps.

 

Cheers!

Esther

Sean1963
5 - Atom

REGEX_Match([Serial Number], "^.{2}[a-zA-Z].+") worked like a champ!

 

Thank you very much

Labels