Expression |
^ *(([\.\-\+\w]{2,}[a-z0-9])@([\.\-\w]+[a-z0-9])\.([a-z]{2,3})) *(; *(([\.\-\+\w]{2,}[a-z0-9])@([\.\-\w]+[a-z0-9])\.([a-z]{2,3})) *)* *$ |
Description |
This Expression Validates a string of Email Adresses which are sepereated with one of these[,.] and can have several white spaces between the delimeters. everything can be read out of groups
^ *(?<FirstEmail>(?<Firstusername>[\.\-\+\w]{2,}[a-z0-9])@(?<FirstProvider>[\.\-\w]+[a-z0-9])\.(?<Firstnamespace>[a-z]{2,3})) *(; *(?<EmailList>(?<UsernameList>[\.\-\+\w]{2,}[a-z0-9])@(?<ProviderList>[\.\-\w]+[a-z0-9])\.(?<namespaceList>[a-z]{2,3})) *)* *$
Must cointain at least 3 char before@, 2char after @ and 2-3 char(a-z) as CountryID. If you don't want to validate and 'just' look for Valid E-mail addresses simply remove the first "^" and the last "$", or remove the optional part after first "{2,3})) *"
|