1 genTLD.pl - generates the massive regex that represents .tld
2 tld_regex.txt - saved output
3 convert2RegExp_1.js - the first part of the function
4 convert2RegExp_2.js - the second part of the function
7 cat convert2RegExp_1.js tld_regex.txt convert2RegExp_2.js
8 you should get the complete function