I updated my code so that it should run as a stand-alone piece of code.
In reply to Re^2: Matches but not substituting by seaver in thread Matches but not substituting by seaver