webdev007
Programmer
- Sep 9, 2005
- 168
I am not very much regex fluent
I can't make the following working 100% it only partially works:
if (!preg_match("/^[\(\)\/\'\"\,\.\-\&\ _a-zA-Z0-9\d]+$/",$biz_name) )
I need to allow for any letters, numbers, and some special characters in any order (this depicts a business name)
so far I can't get it workng when I want to allow for: &
thank you for your input.
I can't make the following working 100% it only partially works:
if (!preg_match("/^[\(\)\/\'\"\,\.\-\&\ _a-zA-Z0-9\d]+$/",$biz_name) )
I need to allow for any letters, numbers, and some special characters in any order (this depicts a business name)
so far I can't get it workng when I want to allow for: &
thank you for your input.