Regular Expression สำหรับ Email Address Validation

หา valid email address

^(?!\b[a-zA-Z0-9._-]+@ [a-zA-Z0-9_.-]+\.[a-zA-Z0-9]{2,}\b).*$

หาก invalid email address

^(?=\b[a-zA-Z0-9._-]+@ [a-zA-Z0-9_.-]+\.[a-zA-Z0-9]{2,}\b).*$

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.