fix regex to match urls with version number