Regular Expression

^(?!foo)(/(?!foo)|[^/])*bar$
blog comments powered by Disqus