How to make regex for -1:+1 pattern, where 1 is any integer?
I need to use it in preg_match(), but my regex skills are none…
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.
\d refers to digit,
+ means one or more of preceding
so \d+ is one or more digits and so on
Not Tested