--- On Wed, 10/5/11, Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> wrote: > > ^(a\.)?domain\.tld(\/c\/)?$ > > JavaScript syntax might be slightly different, but that's > the idea. I had similar idea (a\.|b\.|)domain\.tld(|/c/) but just like your regex it would block the whole domain.tld as well, which isn't what I want.