You can by doing something similar with google, except, as far as I've found, it has to be explicit and you can't use regex patterns or wildcards.
To limit to a specific site
<query> site:w3schools.com or <query> +site:www.w3schools.com
To exclude a specific site
To search with a keyword in url