Hello all,
I've noticed some odd behavior (could be because I'm missing something important)..
When I have a string variable that looks
like this:
$something = "a123";
and I run it through this ereg:
ereg("[[:digit:]]{2,3}$", $something)
it matches! And, when I print out
$something it prints "123" and drops
the "a".
However, that only works for "a". If I try
it with "b123", it fails to match.
COuld someone fill me in on something I'm
missing?
Thanks,
Bob