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

IsValidEmail (String)

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


Verifies that strings are in valid e-mail format.


14.02.12 [18:48 UTC] by bjoern | 948 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


~3d ago

joreg: Workshop on 22 02: Unlocking Shader Artistry: A Journey through ‘The Book of Shaders’ with FUSE. Signup here: https://thenodeinstitute.org/courses/ws23-vvvv-12-book-of-shaders/

~14d ago

joreg: Talk and Workshop on February 15 & 16 in Frankfurt: https://visualprogramming.net/blog/vvvv-at-node-code-frankfurt/

~15d ago

woei: @Joanie_AntiVJ: think so, looks doable

~16d ago

xd_nitro: Anyone remember who increased projector brightness by removing some components that product the color?

~17d ago

Joanie_AntiVJ: This looks super interesting (vectors over network) would anyone here know how to implement this in beta? https://github.com/madmappersoftware/Ponk

~23d ago

joreg: Workshop on 01 02: Data Sensing and Logging with Arduino Signup here: https://thenodeinstitute.org/courses/ws23-vvvv-09-data-sensing-and-logging-with-arduino-and-vvvv/

~28d ago

domj: I've added myself to vvvv specialists available for hire See at the bottom, lmk if you want to collab or in need of tutoring! ❤️

~1mth ago

joreg: Workshop on 25.01: Create Sequencers and Precise Clock Based Tools. Signup here: https://thenodeinstitute.org/courses/ws23-vvvv-08-create-sequencers-and-precise-clock-based-tools-in-vvvv-gamma/