I am trying to get the information out of this array, but for some reason it is nesting everything into $matches[0]
.
<?
$file = shell_exec('pdf2txt.py docs/April.pdf');
preg_match_all('/.../',$file,&$matches);
print_r($matches)
?>
Is this working as intended? Is there a way to put this in an array of depth 1?
EDIT:
This is the RegEx:
([A-Z][a-z]+\s){1,5}\s?[^a-zA-Z\d\s:,.\'\"]\s?[A-Za-z+\W]+\s[\d]{1,2}\s[A-Z][a-z]+\s[\d]{4}