Table of Contents

IsEmailAddress Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Condition.cs

IsEmailAddress(string)

Determines whether the specified value has a valid format of an email address.

public static bool IsEmailAddress(string value)

Parameters

value string

The string to verify has a valid format of an email address.

Returns

bool

true if the specified value has a valid format of an email address; otherwise, false.

Remarks

In my search for the most comprehensive and up-to-date regular expression for email address validation, this was the article I choose to implement: http://blog.trojanhunter.com/2012/09/26/the-best-regex-to-validate-an-email-address/.