I ONLY want to match
*://www.foo.com
with either no querystring like above, or any querystring:
*://www.foo.com/?*
Problem is, how do I match the first pattern above? My guess is I have to just match all paths then exclude all paths, then include the second pattern above.
Any better way to do this?
Your patterns are almost correct. The path name is required. Even when the omnibar shows www.foo.com
, then the path is /
.
*://www.foo.com/
*://www.foo.com/?*
Note: the last pattern matches /?test
but not /index?test
.
For more information, see Match patterns.