Reply to Re: Regular expression and special characters

Your name:

Reply:


Posted by Anze on 03/19/07 13:14

You can add croatian letter to the list of allowed chars:
$result = ereg ("^[A-Za-z0-9??????????]+$", $input);

Greetings from slovenia! ;)

An?e


Zvonko Bi¹kup wrote:

> Hi!
>
> I need to validate a text field in a form (you can enter only text and no
> spaces).
> But I have a iso-8859-2 character set and Croatian letters don't pass
> validation.
> Here is a piece of code:
>
> $result = ereg ("^[A-Za-z0-9]+$", $input);
>
> Any help appreciated.
> Zvonko
>
> Bok!

[Back to original 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

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