So in the first KB link I posted there is a section titled "Example:
Full host name/URL translation", so I experimented with variations on
this (too many to list if I'm being honest) without much luck. Then I
tried using a regex debugger for testing ...