Page 1 of 1
Detecting letters in an alpha variables
Posted: March 5th, 2021, 2:20 am
by blumski
Hello cspro users
Is there a function that allows to check if an alpha variable contains letters ?
Re: Detecting letters in an alpha variables
Posted: March 6th, 2021, 9:44 pm
by aaronw
You could use the regex functionality to check if an alphanumeric variable contains letters. Below I've linked the regexmatch helps, a blog post that walks through its use, and a Stack Overflow post that discusses possible expressions.
helps:
https://www.csprousers.org/help/CSPro/r ... ction.html
blog post:
https://www.csprousers.org/posts/2019-0 ... sions.html
Stack Overflow:
https://stackoverflow.com/questions/606 ... characters
Re: Detecting letters in an alpha variables
Posted: March 7th, 2021, 3:21 am
by blumski
Thank you very much