Detecting letters in an alpha variables

Discussions about CSEntry
Post Reply
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

Detecting letters in an alpha variables

Post by blumski »

Hello cspro users

Is there a function that allows to check if an alpha variable contains letters ?
aaronw
Posts: 565
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Detecting letters in an alpha variables

Post 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
blumski
Posts: 37
Joined: May 7th, 2018, 7:02 am

Re: Detecting letters in an alpha variables

Post by blumski »

Thank you very much
Post Reply