You are here: Regular Expressions « All PHP « IT news, forums, messages
Regular Expressions

Posted by tomhawkins1 on 05/03/06 23:03

I can never seem to get these to do what I want and it should be simple
as far as I can tell! I need to check to see if a variable of mine has
been submitted in the correct format.

The 'correct' format is either
1. 8-15@113.5
ie a number (an integer between 1 and 500 say), followed by one '-'
followed by a number (an integer between 1 and 500 say), an @ and a
number to end (a float between 1 and 10000 say), or

2. 43@226 ie without the first '8-'

Any guidance as I'm tearing my hair out.!?

Thanks

Tom

 

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

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