Jump to content
  • IsEmailString()

    IsEmailString()

    Lua   SwxWare v13.10

     

    This helper function checks, if the given string is an email address.

     

    local bEmail = IsEmailString(str)

     

     

    This function returns a boolean value.

     

    The check for a valid email email address is quite simple, it will just be checked if there is an "@" character within the given string. 

     

     

    Example:

     

    local bEMail = IsEmailString("test@test.com")
    
    PBXScript.OutputTrace ("bEMail = " ..tostring(bEMail))
    
    --> bEMail = true

     

     


    Tom Wellige
     Share


     Share




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.