You are here: Re: [PHP] preg_match - help please « PHP « IT news, forums, messages
Re: [PHP] preg_match - help please

Posted by Jason Wong on 10/29/38 11:22

On Thursday 28 July 2005 01:50, André Medeiros wrote:

> You can have four words to describe a first and last name... you can
> have other alphabets, like arabian, chinese, etc... inserting accented
> characters alone would make that a big, nasty regex, let alone
> predicting ways you can describe first/last names.
>
> I'm not saying that I have the _BEST_ sollution. All I'm saying is that
> there are sittuations that are out of your control, and it seems to me
> this might be the easiest way out, guaranteeing that there are at least
> two words.

Most Chinese would enter their name (usually 3 words, sometimes 2. rarely
4) WITHOUT any spaces.

Not sure what the OP was trying to do, but the best way to handle it
(IMHO) is to give the user 2 input boxes, one for family name, the other
for the rest of their name.

--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация