Gerard Samuel a écrit:
Curt Zirzow wrote:I think, you Forgot, a \ before the $ at the end of the expression...
Gerard Samuel <[EMAIL PROTECTED]> wrote:
or even
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string)
Unfortunately it doesn't for some reason. Don't know why.
that should work.
But this does, so Im good. Thanks for the tips...
but you could do this: $pattern = "/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}\$/"; preg_match($pattern, $some_string)
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php