Gerard Samuel a écrit:
Curt Zirzow wrote:

Gerard Samuel <[EMAIL PROTECTED]> wrote:


or even
preg_match('/^[a-z0-9\-_\.]+\.[a-z0-9]{' . $foo . ', ' . $bar . '}$/', $some_string)
I think, you Forgot, a \ before the $ at the end of the expression...



that should work.

Unfortunately it doesn't for some reason. Don't know why.


but you could do this: $pattern = "/^[a-z0-9\-_\.]+\.[a-z0-9]{$foo, $bar}\$/"; preg_match($pattern, $some_string)

But this does, so Im good. Thanks for the tips...



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to