which works ok. in it i have 4 groups. now my file have 2 or more same lines that this pattern can catch, but after reading and reading all about backreferences and repeating backreferences i still don't know how to add smthg to this pattern so i will catch again that 4 groups and check them with log, until i get to the end of file.