Skip to content
KarlG1965 edited this page Aug 11, 2023 · 5 revisions

Substitution groups

URLs

What happens if no URL is specified?

The substitutions from that group will be applied to every page.

How can I restrict substitutions to a few specific sites?

Add every applicable address to the URLs tab. URLs only need to match partially, e.g. example.com will match http://example.com, http://whatever.example.com, http://anexample.com, etc. You can also include a more specific address, e.g. example.com/foo.

How can I exclude a website from being replaced?

Add a hyphen - at the beginning, e.g. -example.com. Then it will be displayed in red to show that it will be excluded from application.

What happens when both including and excluding URLs are present?

Substitutions will be applied if the page address matches one of the normal (including) URLs and doesn't match any of the excluding (with -) URLs.

Which other special characters can be used?

You may use an asterisk * to match any 0 or more characters (not needed at the beginning and the end) and a vertical bar | to match the beginning or the end of the URL. For example, http://*.example.com/| would match http://www.example.com/ but not http://www.example.com/whatever.

Substitutions

What is a regular expression?

It's a way to define advanced text patterns. For more information read https://en.wikipedia.org/wiki/Regular_expression.

Where can I learn how to write regular expressions?