[eluser]tim1965[/eluser]
Hi
I am trying to add a custom form validation function using MY_Form_validation. I have the function working and generating error messages on validation. However the regular expression i have seems not to be be doing what i want it to do.
Essentially i want a regular expression that allows all the normal English language characters people use when writing.
So a-z 0-9 " \ / ( ) ´ : _ - + = . , !
and a space
Really just to valiadate standard text input for text areas.
Currently i have
Code:
preg_match("/^([-a-z0-9\_\:\´\/\.\,\(\)\+\"-\s])+$/i", $str)
But this is disallowing ´ and i am not sure why.
I find it very strange that CI´s standard validation doesnt cater for this as most people woukd have had to extend this to cater for normal textfield input. So if any kind soul has something they can post to address the above then that would be fantastic.
I know i need to get my head round these at some point, i am just not ready yet.
Thanks in advance.