I am looking for a reg exp to match 1111111/11 pattern, all numbers are integers.
I will be grateful if anyone can please help? I am not that good in regular expressions.
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.
Assuming you’re trying to match 7 digits, a slash, and then 2 more digits, you’ll want a regex pattern like the following:
In PHP, your overall code will look something like this: