Move regular expression as parameter. Fix projects setup.