B
Benedict White
I need a bit of help cleaning up a mess.
I need to write a regular expression that looks for invalid email
addresses. I know that the email addresses do not contain numerical
charictors or unusual combinations of letters.
What I was hoping for was something that would locate all emails with
say 2 before the at addressed to the domain I am looking after,
example.com.
I tried ^[A-Za-z2._%+-][email protected] however the 2 is not required.
The numbers could be anywhere in string before the @. It will miss
email addresses with other numbers in them, but will also pick up any
without out. I need to have all with numbers in them, to the
example.com domain.
Then I want to extend it to look for odd combinations of letters, like
xb, which would then have to appear together but anywhere in the
string.
Kind regards
Benedict White
I need to write a regular expression that looks for invalid email
addresses. I know that the email addresses do not contain numerical
charictors or unusual combinations of letters.
What I was hoping for was something that would locate all emails with
say 2 before the at addressed to the domain I am looking after,
example.com.
I tried ^[A-Za-z2._%+-][email protected] however the 2 is not required.
The numbers could be anywhere in string before the @. It will miss
email addresses with other numbers in them, but will also pick up any
without out. I need to have all with numbers in them, to the
example.com domain.
Then I want to extend it to look for odd combinations of letters, like
xb, which would then have to appear together but anywhere in the
string.
Kind regards
Benedict White