... the op wanted a find a space and alpha chars ...
How do you interpret that from the original post?
I think this should do the trick or is there another/easier method available with VL-string functions?
(defun AlphabetOnly ($ /)
(while (and (wcmatch (substr $ 1 1) "@") $)
(setq $ (substr $ 2))
)
(= $ "")
)
Edit: should still check "" input...
I maintain that writing isalpha, isdigit type functions that return true for characters that are not alphabetic or digits respectively is illogical and just plain bad practice.
It's also contrary to standards that have been in place for decades which incidentally this snip:
#include <ctype.h>
isalpha()
isspace()
isalnum()
ispunct()
Unintentionally underscores.
When solving problem one should learn how to define and use standard functions and practices -- and those who espouse to be teachers should guide students accordingly.
To wit, any C (and derivative languages) programmer who would posture themselves as an expert and then would abuse or override the core libraries so that isalpha returned a true state if passed a space would be swiftly taken to task by the programming community. Why it's acceptable in this thread baffles me.
... much of the autolisp community is in trouble.
You may have a point.