pears.NetValidateEmailAddress

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

CREATE FUNCTION "pears"."NetValidateEmailAddress"( 
  IN @email VARCHAR(200) ) 
RETURNS long VARCHAR
BEGIN
  DECLARE "RV" long VARCHAR;
  SET "RV" = IF "isnull"((SELECT 1 WHERE @email REGEXP '^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)*\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?)*$'),0) = 1 THEN
      ''
    ELSE 'Invalid e-mail Address'
    endif;
  RETURN("RV")
END
  • database/functions/pears_netvalidateemailaddress.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1