enhance the regex entension (a bit)