Added helper tools for regular expression