ofca
4/29/2014 - 9:45 PM

regex-test.php

<?php

$strings = array(
	'/bundle/foo/login',
	'/bundle/foo/notLogin',
	'/bundle/foo/loginNot',
	'/bundle/foo/bar'
);

foreach ($strings as $string) {
	echo $string, '  :  ', (int) preg_match('/^\/bundle\/foo\/((?!login$).)*$/', $string), "<br />";
}