repair links regxps