» IsValidEmail (String)
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

IsValidEmail (String)

plugin
Credits: http://msdn.microsoft.com/en-us/library/01escwtf.aspx

about

Verifies that strings are in valid e-mail format.

download

StringIsValidEmail.zip
14.02.12 [18:48 UTC] by bjoern | 985 downloads
IsValidEmail (String)

bo27 14/02/2012 - 20:27

hey bjoern, thank you for the contrib!
may i suggest 2 improovements?
1/ validate via root zones http://www.iana.org/domains/root/db/ (avoid locals, but only classic latin),
since test@domainname.rus marked now as valid but it's not
test@domainname.ru is valid
2/ let more flexible names
e.g. (_@domainname.com) now marked as not valid, but it is. i know, google not let to use signs, but some other services do, so _ and - sings should be welcome in the plug filters.

bjoern 15/02/2012 - 13:26

To be honest I merely copied the code found here and pasted it into a string-plugin-template.

The code uses a regular expression to parse the input and check if it adheres to a certain form/syntax. Nothing is really validated, "rus" just matches the pattern like "com" or "net" do. The regex only tests if the TLD part consists of at least of two and a maximum of 17 characters.

So the plugin is not named very aptly and maybe should rather be called IsWellformedEmail (String).

Concerning underscores, as far as I know they are allowed in mail-addresses, just not at the beginning of the string, therefore t_st@domainname.net is marked valid (wellformed) whereas _st@domainnam.net is not.

anonymous user login

Shoutbox

~3mth ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~4mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~4mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~4mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~4mth ago

~4mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~4mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~4mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~4mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~5mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/