Geoffry, Opps... I guess I shouldnt try to do too many things at the same time...the pattern modifier should have been a 'i' instead of 'o'. It should have been: Ind = PrxMatch( '/a-z/i' , Var1 ) ; This will match a-z and A-Z characters as the 'i' pattern modifier tells the RegEx engine to use case insensitivity. There is no need for the 'o' pattern modifier since the pattern is explicitly and does not change. Which means SAS by default will only compile it once. Since Var1 is suppose to only be length of 1 the varibale does not need to be trimmed of any leading or trailing spaces. If one only wanted to check for lower case letters then: Ind = PrxMatch( '/a-z/' , Var1 ) ; And for only upper case: Ind = PrxMatch( '/A-Z/' , Var1 ) ; Sorry for the fat fingered and lack of proofing on the last post.
... View more