Created
September 20, 2023 06:44
-
-
Save nextab/8b3982408136681301b89ec8bab6cd1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #region Check e-mail regex | |
| function jet_fb_v_nxt_check_email_regex( $value, $context ): bool { | |
| $pattern = "/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/"; | |
| if (preg_match($pattern, $value)) return true; | |
| return false; | |
| } | |
| #endregion Check e-mail regex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Warum nicht einfach is_email()? :)