There are no changes in the for loop area, I had at some point edited this but brought it back to what it was before touching it, they look like changes because the comments where not exactly the same I think. Only changes here is for the regexp, instead of putting in all the search string escaped, we search through each individual search term but not necessarily from the beggining