I want to preg_match [200932] this from a string.
I tryied some pattern but didnt help, any idea?
I want to preg_match [200932] this from a string. I tryied some pattern but
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.
Your question is very vague but I think you probably forgot to escape the square brackets. They denote a character class in RegEx.
If you were to use
/[200932]/it would mean “2 or 0 or 9 or 3”.Edit:
To capture numbers between square brackets:
That’s