webdev007
Programmer
- Sep 9, 2005
- 168
As part of a user input filter (coming from a text area)
I use the following regular expression
but it does not allow for text area line breaks <br> or <br />
I cannot figure how to include those line breaks in my regex
could you show me the way in such manner I will understand for futur references your addition.
if (!preg_match("/^[a-zA-Z0-9 \;\.\-\,\]+$/",$quest) )
I use the following regular expression
but it does not allow for text area line breaks <br> or <br />
I cannot figure how to include those line breaks in my regex
could you show me the way in such manner I will understand for futur references your addition.
if (!preg_match("/^[a-zA-Z0-9 \;\.\-\,\]+$/",$quest) )