You are here: Re: Problem with regular expression and preg_match « PHP Programming Language « IT news, forums, messages
Re: Problem with regular expression and preg_match

Posted by bobzimuta on 03/22/06 01:40

what about the case where an image size starts with 0 (i.e. 0999x0111)
which can cause wackiness since the number will be converted to octal.
Maybe this? p.s. \d == [0-9]

preg_match("[1-9]\d{0,4}x[1-9]\d{0,4}", $output, $widthHeight);

 

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

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