[snip]
"^Q4_[0-9]$"
&
Yes, your understanding of "^Q4_.[0-9]$" is wrong.
[/snip]
Thanks guys..,
I did take the '.' out of the expression, but I also had to change the
way I was using it.
I replaced;
if($key == ereg( "^Q4_.[0-9]$", $key)){
with
if(ereg( "^Q4_.[0-9]$", $key)){
alex hogan
--
PHP
On Sep 30, 2004, at 2:22 PM, Alex Hogan wrote:
Is my ereg() wrong?
My understanding is ereg("^Q4_.[0-9]$", $key) should look for a $key
starting with 'Q4_' followed by a single number and place those values
into an array named $Q4scores.
Yes, your understanding of "^Q4_.[0-9]$" is wrong. This says
On Friday 01 October 2004 05:22, Alex Hogan wrote:
> if($key == ereg("^Q4_.[0-9]$", $key)){
"^Q4_[0-9]$"
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
3 matches
Mail list logo