RE: [PHP] regex brain-toot
| From: | Jay Blanchard | Date: | Mon, 19 Jun 2006 19:36:53 +0000 |
| Subject: | RE: [PHP] regex brain-toot | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-238318@lists.php.net to get a copy of this message | ||
[snip]
Do you have to use ereg? The preg_match pattern I posted works fine.
It will return an array, first element being the whole string it
matched, next element will be what it matched _inside_ the parentheses
(less the parentheses) (if it matches anything that is).
[/snip]
Thanks John....the brain fart continued. I was echoing $regs[0] instead
of $regs[1]....too many hours, not enough caffeine or sleep. I am
getting too old....