Now the funcion returns all matches and all needed regex subgroups