php regex to extract data from HTML table
问题 I'm trying to make a regex for taking some data out of a table. the code i've got now is: <table> <tr> <td>quote1</td> <td>have you trying it off and on again ?</td> </tr> <tr> <td>quote65</td> <td>You wouldn't steal a helmet of a policeman</td> </tr> </table> This I want to replace by: quote1:have you trying it off and on again ? quote65:You wouldn't steal a helmet of a policeman the code that I already have written is this: %<td>((?s).*?)</td>% But now I'm stuck. 回答1: Tim's regex probably