add tools/001clregex  and fix bugs