Search code examples
regexgoogle-search-appliance

How do I find all URLs without a directory?


The following expression doesn't seem to be working for me, and I can't figure out why.

regexpIgnoreCase:^https?://www.aaaaaaa.com/[^/]*$

I'm trying to select all URLs under a given domain that do not contain directories. Any advice on how to do this, and in particular, why the above doesn't work?

Thanks


Solution

  • Try this

    regexpIgnoreCase:^https?:\/\/www.aaaaaaa.com\/[^\/]*$