You are here: Re: Regular expression « PHP Programming Language « IT news, forums, messages
Re: Regular expression

Posted by Steve on 10/18/07 13:15

<davranfor@gmail.com> wrote in message
news:1192698332.976860.15250@v23g2000prn.googlegroups.com...
> >you had two responses...one of
>>which (not mine, btw), is much more simply expressed than rik's
>
> Steve , not much more simply expressed
>
> "1-9" and "\d" are identical ;)

uhmmmm...

/^\d{1,3}(?:-\d{1,3})*$/

is much more simply understood than

/^([1-9][0-9]?)?[0-9](-([1-9][0-9]?)?[0-9])*$/

smart ass.

 

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

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