regex class interface and numerical test