Hey there, I'm trying to write a regular expression for a code like this:
<tr>
<td>I'm some text</td>
<td>1234</td>
<td>1231</td>
</tr>
<tr>
<td>I'm some text</td>
<td>1234</td>
<td>1231</td>
<td>7181</td>
</tr>
(I know, bad html code... )
Now I want an expression that looks for every table row and can handle dynamic numbers of ([0-9]{4}). So if there are two cells, I'd like to get an array with the two values, if there are three, there should be all three values inside my array.
My regexp HAS TO start and end with:
!<tr> ..... </tr>!sU
Is that possible?
Thanks!