Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Is there an AutoLISP routine that checks if an email is well-formed?
Thanks,
Solved! Go to Solution.
Hello,
Is there an AutoLISP routine that checks if an email is well-formed?
Thanks,
Solved! Go to Solution.
Why would you want to be in an AutoCAD drawing to check an email, for anything? How would you propose to get the email into AutoCAD to check it? And if you have good reason to, and can get it in, what constitutes "well-formed"?
I have an AutoCAD Application which links the user to his account in the website via a DCL dialog as per the below figure
I am changing this DCl Login dialog to be used as Login (for already registered users) and Sing Up (for a new User).
In this case, I need to checkup the new user's email before sending the HTTP request to the server with User data (email password), I prefer to do that (email well-format checkup) in the AutoCAD session and not on the website PHP function.
As I know the well-formatted email shall be as follow:
Valid Name Part in Email Address with Example:
You should use regex expressions. Here is a autolisp code to work with regex posted at site by @_gile .
Search over the internet and look for regex expressions to check emails. There are simple forms that only check for @ sign in string, to more bulletproof solutions.
https://gilecad.azurewebsites.net/LISP/RegExp.lsp
Miljenko Hatlak
@_Bilal wrote:
....
Is there an AutoLISP routine that checks if an email is well-formed?
....
In my mind, "an email" is a message sent by email. But it's now apparent that you're talking about an email address.