I'm trying to create a regular expression in php with these condition:
1. Two letters, then six numbers (ha123456).
2. Or one letter, then seven numbers (j0123456).
Now I have this, but it doesn`t work properly.
[a-zA-Z]{1,2}[0-9]{6,7}
Any suggestion ? or do i have to check it with function ?
Thanks for reply.