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
By Tom Wellige