<?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 />";
}