I once saw a regular expression example
^\s*(+-)?(\d+|\d*\.\d+|\d+\.\d*)(e?(+-)?......$
but I just do not know how to understand/analyze this one?
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.
Analyze it a bit at a time; if you see a
?,*, or+then that modfies the previous ‘group’ (parenthesized group, or ‘atomic’ unit such as\sor a literal likee):Here the regex trails off, and I’m not sure if the
.....is a literal series of.s in the regex or just a normal ellipsis. But hopefully this is a clear explanation. (by the way,$means ‘end of the string’).