Now the regex guessing the root url of tiles works also if the data url (the url from which information about the tile was downloaded) does not ends with .dzi, .xml or .js.