Regular Expression Fix

Fixes issues 1 and 2.

I also added an improvement to handle absolute src/href paths like
<link rel="stylesheet" href="/css/bootstrap.min.css?rev=@@hash">