what sort of a regex pattern should i use to check if an email is in this patter, xxxxxxx@my.hello.co.uk
xxx being letters and numbers
tried this [a-zA-Z0-9._-]+@[my.hello]+.[ac]+.[uk]
doesn't work though
what sort of a regex pattern should i use to check if an email is in this patter, xxxxxxx@my.hello.co.uk
xxx being letters and numbers
tried this [a-zA-Z0-9._-]+@[my.hello]+.[ac]+.[uk]
doesn't work though
Try:
[a-zA-Z0-9]+@my\.hello\.co\.uk
The dot '.' is a special char meaning "any char". You must escape it with the slash '\'. I dropped the underscore, the hyphen, and the dot from your 'xxx' part because you want only letters and numbers.
You must aware that
0zkr@my.hello.co.uk
will be valid (star with a zero digit :) May be you want to read Jquery validating email using RegEx