add code specification file and start to rewrite the regular match