add test.pl for regex.