https://sbis.ru/contragents/301807389184https://sbis.ru/contragents/352519549170https://sbis.ru/contragents/7838407291/783801001
https://(?=.+/.+/.+/).+
import sublimeimport sublime_pluginimport reclass RemoveSlashesCommand(sublime_plugin.TextCommand): def run(self, edit): regions = self.view.find_all('https?://.+?\s', 0) self.view.selection.clear() for region in regions: slashes = len(re.findall('/', self.view.substr(region))) if slashes == 4: self.view.selection.add(region) self.view.run_command('delete_word')
[ { "keys": ["ctrl+k", "ctrl+e"], "command": "remove_slashes" }]