changes location.search.replace to location.search.match for better matching
Merge pull request #13 from nifengle/regex

changes location.search.replace to match for better matching