in reply to regex persistence of matches
I also suggest you post some actual code so we know you have actually tried to solve the problem.