Philip: Names (especially if you're handling international characters) tend to have a huge sub set of possible characters and users tend to get very pissed off if you develop a pattern that blocks their legal name. My advice to you, check if it's blank, make sure it isn't too long for your database field, check it for injection attacks, store it and call it a day.
- jake 2009/1/7 Philip G <g...@gpcentre.net>: > > I'm trying to figure out the best way to validate a name, using > Zend_Validate, while maintaining UTF8 compliance. Zend_Validate_Alpha() will > check for alphabetic characters. However, while it allows "Николь" to go > through, "O'Reilly" fails because of the apostrophe. > Is there some way to add characters to Alpha()? Or is there another way I > can go about this? RegEx is a little more complex, since it'll also need to > include international characters, of which I don't even know the regex for. > --- > Philip > g...@gpcentre.net > http://www.gpcentre.net/ >