added regex class