regex , ereg() Problems???
- From: dkirkdrei@xxxxxxxxx
- Date: 16 Dec 2006 10:53:33 -0800
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))
.
- Follow-Ups:
- Re: regex , ereg() Problems???
- From: Rik
- Re: regex , ereg() Problems???
- Prev by Date: Re: Page load frequency
- Next by Date: Re: regex , ereg() Problems???
- Previous by thread: Session duration ?
- Next by thread: Re: regex , ereg() Problems???
- Index(es):
Relevant Pages
|