use String.match instead of RegExp.exec to capture uri fragments

This way it's possible to use global search in the given regexp