You are here: Newbie needs help with regular expression « All PHP « IT news, forums, messages
Newbie needs help with regular expression

Posted by raj on 02/16/07 10:19

Hi,

Please can someone help regarding providing a regular expression for entering
a set of characters with letters, numbers, periods (.), hyphens (-), or
underscores (_) only.

I've got as far as this:

$pattern="^([_a-z0-9-]+)(\.[_a-z0-9-])$";

Thank you in advance.

Kind regards,

Raj (newbie)

 

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

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