The regexp used so far missed some unusual ones, like those containing quotes or double quotes. We're not going to complexify the regexp too much, so this is probably still not perfect.
Closes #6609.
This respects the constraints introduced by #4372 at the notification level, but doesn't yet inject the `[notification] admit_domains` in the Wiki regexp.