I want to know the General formula for Writing Regular Expression? Any article?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There isn’t really a general formula. Regex is a non-trivial language for matching strings. There are plenty of books and tutorials available.
One of the better ways of learning regex is to use a piece of regex designer software, like this one.
Regexes for emails are tricky, but there are some good ones here: http://regexlib.com/DisplayPatterns.aspx