array ( /* $all_matches[0] is an array of full matches */ 0 => array ( 0 => "Jack A. Smith", /* full text from first match */ 1 => "Mary B. Miller" /* full text from second match */ ), /* $all_matches[1] is an array of strings captured by 1st set of parens */ 1 => array ( 0 => "Jack", /* first match's 1st capturing parens */ 1 => "Mary" /* second match's 1st capturing parens */ ), /* $all_matches[2] is an array of strings captured by 2nd set of parens */ 2 => array ( 0 => "A.", /* first match's 2nd capturing parens */ 1 => "B." /* second match's 2nd capturing parens */ ), /* $all_matches[3] is an array of strings captured by 3rd set of parens */ 3 => array ( 0 => "Smith", /* first match's 3rd capturing parens */ 1 => "Miller" /* second match's 3rd capturing parens */ ) ) ----------------------------------------------------------------------------- Copyright 1997-2024 Jeffrey Friedl