import re from Npp import editor snake = re.compile('([a-z\\d]+_)+[a-z_\\d]+') camel = re.compile('((?