regexp for determine text file fix