I am doing a MySQL search of the form
SELECT ... WHERE lastname LIKE '$lastname';
I translate input 's to % so I can allow searches on
Clin, ton, Cn ...
This is working great.
I want to disable searches on only ''. MySQL also returns all its content on '%%' so i also need to disable input of '**' and n-times .
Which Regular Expression do I have to use to return an 'Not allowed' if someone tries to do the search mentioned above?
I am rather new to programming, everything's going fine except for RegEx ...
Thanks a lot for your help!
Phillip.