I'm trying to select all the rows in a table from a database that has a the following structure:
<tr>
<td>
<p><strong>Completion Date:</strong></p>
</td>
<td>
<p>April, 2012</p>
</td>
</tr>
But the month and year could be different.
Here is my current query statement:
SELECT * FROM `posts` WHERE `content` REGEXP "<tr>\r\n<td>\r\n<p><strong>Completion Date:</strong></p>\r\n</td>\r\n<td>\r\n<p>April, 2012</p>\r\n</td>\r\n</tr>"
Currently this will only pull the rows that have April, 2012 which is what I expect it to pull. I tried replacing the month with: ^[A-Za-z]$ but this did not work nor any other combination I tired.
Could someone help with the correct regular expression?
Thanks,
-M