add regular expression matching to --output-http-rewrite-url

I extended --output-http-rewrite-url to also accept regular expressions for matching.