create RegExp helper class