Reply to regex , ereg() Problems???

Your name:

Reply:


Posted by dkirkdrei on 12/16/06 18:53

I am having a problem verifying characters in a variable, I am trying
to create a conditional statement based on whether or not the first two
characters of a variable contain "E9". The variable will always be
either a 6 or a 7 digit, alpha-numeric string begining with "E". I have
tried the following ereg() statement and it picks up everything because
it begins with "E". I cannot seem to find any examples for matching
characters in a specific location within a string except for the
begining or the end. I am sure there is a simple solution. Any ideas??

(ereg("^[E9]", $enumber))

[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

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