Added selections for the regexes

Which means, now you can specify that a regex sub in a format will only
affect a certain part of the document (defined by, you guessed it,
another regex).