Reply to regular expression

Your name:

Reply:


Posted by Eric Layman on 03/22/07 17:39

hi,

i intend to validate a string of numbers:

The conditions are: it can start with a + sign or without. but all must be
in numbers. a space is allowed

Consider the following numbers

+12345922

12345922

The above 2 numbers are valid. I've tried the following regexp:

[\+0-9]$

It doenst work as intended.

helloworld1234567

goes through!

whereas

1234567helloworld doesn't!

please advise




Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

[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

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