Looking for some help on how to validate a string in PHP.
My string contains:
- 4 NUMBER
- 1 LETTER
- 5 NUMBER
all in one entry, so like 1234A12345.
I need to make sure/validate this before inserting in the DB.
Can one of the wizard help me out there?
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.
This is a pretty simple regex:
And in case you haven’t used regex in PHP before.