NYCPHP Meetup

NYPHP.org

[nycphp-talk] validating proper name capitalization

Federico Ulfo rainelemental at gmail.com
Fri Sep 23 11:44:42 EDT 2011


validate this :)
http://current.com/entertainment/wtf/89484683_teen-breaks-record-with-super-hero-name-change.htm

I think the best way is to keep it open, so what about this:
(\w(\s|\'|\-){0,1})*

Also how do you validate Chinese, Japanese, Hindy, Arab and others languages
name?

-- 
Federico Ulfo » <http://www.federicoulfo.it/>
Certified Developer Google & PHP
  <http://www.federicoulfo.it/>



On Fri, Sep 23, 2011 at 11:29 AM, Chris Snyder <chsnyder at gmail.com> wrote:

> > A little OT digression about the hyphen. Many of you know that in the
> > Spanish-speaking world people conventionally use two surnames, the
> paternal
> > and maternal, in that order. Try explaining that to US law enforcement
> and
> > corrections:  they can't get their minds around it. So everyone has to
> get
> > hyphenated.
>
> Or the opposite problem: I've been working with a city-run database
> that doesn't allow hyphens in names. Brilliant!
> _______________________________________________
> New York PHP Users Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/Show-Participation
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20110923/c9514dd7/attachment.html>


More information about the talk mailing list