moved regexp class in a separated file