added regex file implementation