Re: Validate alphaNumeric with spaces

2008-01-26 Thread Siebren Bakker
That's actually the exact code I have in my own model validation, and it works perfectly for alphanumeric with spaces. On Jan 23, 2008 3:16 AM, Marcin Jaworski [EMAIL PROTECTED] wrote: This should do it 'rule' = array('custom', '/^[a-z0-9 ]*$/i') On 23 Sty, 03:52, Chris Gallop [EMAIL

Re: Validate alphaNumeric with spaces

2008-01-23 Thread Marcin Jaworski
This should do it 'rule' = array('custom', '/^[a-z0-9 ]*$/i') On 23 Sty, 03:52, Chris Gallop [EMAIL PROTECTED] wrote: I am trying to validate a field and I want to use alphaNumeric form of validation with spaces possible. However the alphaNumeric does not seem to allow spaces. Is there a

Validate alphaNumeric with spaces

2008-01-22 Thread Chris Gallop
I am trying to validate a field and I want to use alphaNumeric form of validation with spaces possible. However the alphaNumeric does not seem to allow spaces. Is there a validation rule I can tack on to allow this. My code is below and I would like the state field to be allowed to have spaces