Include text preceding/following URL capture group in the rewritten text to allow for restricting matches by text before/after the URL. In support of ARI-3837.
Merge remote-tracking branch 'upstream/ARI-3837' into ari-3807