I am trying to get important dates from string...
<tr> <td>Account Registered :</td> <td>2008-02-02</td></tr>
<tr> <td>Account Updated :</td> <td>2014-02-01</td></tr>
<tr> <td>Account Expires :</td> <td>2015-02-02</td></tr>
And I have tried following...
preg_match('#<tr> <td>Account Expires :</td> <td>[0-9]{4}-[0-9]{2}-[0-9]{2}#', $result, $matches);
And it provides following...
array (size=1)
0 => string '<tr> <td>Account Expires :</td> <td>2015-02-02' (length=38)
I want to get all three dates in 1 regex or 3 different regex, please help me with this. thanks