Works like a charm. A good charm. 🙂
Your the man, cool guy! <-- directly stolen from Labatt's Television commercial. heh.
Rich Alloway wrote:
To get this to work, simply replace the '?' with '+'.
The question mark makes the ereg() return true for exactly 0 or 1 matches.
The plus makes ereg() return true for 1 or more matches.
I hope this helps!
-Rich