How to get all captures of subgroup matches with preg_match_all()? [duplicate]
Similar thread: Get repeated matches with preg_match_all() Check the chosen answer plus mine might be useful I will duplicate there: From http://www.php.net/manual/en/regexp.reference.repetition.php : When a capturing subpattern is repeated, the value captured is the substring that matched the final iteration. I personally give up and going to do this in 2 steps. EDIT: I see … Read more