PHP RegEx extraction
Posted on 2013-11-11
Given the following text snippet, I need some help in extracting the parameters:
$text = <<<EOT
I want to extract the fields from the mytag lines resulting in an array something like:
 => array('charlie', 'doug'),
 => array('julie', 'ivy')
I thought preg_match might do this, but not had any joy. Can anyone help?