Finished code to load files and corresponding regexps to watch for.