add more functions for regular expressions