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](http://content.invisioncic.com/r255538/monthly_2020_04/facebook2.thumb.png.7201b63ad83065920f23d2478c4a838f.png)
By Tom Wellige