wimal Posted January 15, 2012 Posted January 15, 2012 (setq bt (substr text 1 1)) ;CHECKING first letter I am checking the Fist letter or number of "text" How can I identify weather variable bt is a number or letter. Quote
David Bethel Posted January 15, 2012 Posted January 15, 2012 (wcmatch) is your friend here (wcmatch bt "#") Should return T if bt 'Matches any single numeric digit' . David Quote
wimal Posted January 15, 2012 Author Posted January 15, 2012 (wcmatch) is your friend here. David Thanks for your help .I can continue now. Quote
Lee Mac Posted January 15, 2012 Posted January 15, 2012 You could check without using substr to retrieve the first letter using: (wcmatch text "#*") Will return T if the string 'text' begins with a number. Quote
wimal Posted January 15, 2012 Author Posted January 15, 2012 You could check without using substr to retrieve the first letter using: (wcmatch text "#*") Will return T if the string 'text' begins with a number. Thanks Lee Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.