PHP preg_match_all returning blank strings in match group
I have the following string $string = "5A3BB0020221209DES.ACT"; And running the following Regex preg_match_all('/(00)|(?<!^)(?<date>2d{7}|d{2}.d{2}.d{2}|d{8}|d{6})/', $string, $m); When I dump the output of $m['date'], I get an array like this array(2) { [0]=> string(0) "" [1]=> string(8) "20221209" } I'm only…