L
Leif Wessman
I have a variable $myregexp with the following regexp (multiline):
<tr><td>
id: (\d{5}[AX])
<\/td><\/tr>
I also have another variable $results that has some html, like this:
<table>
<tr><td>
id: 45434X
</td></tr>
<tr><td>
id: 95434A
</td></tr>
</table>
In php I'm doing the following:
preg_match_all("/$myregexp/", $results, $matches);
But I get an error. Why is this?
Leif
<tr><td>
id: (\d{5}[AX])
<\/td><\/tr>
I also have another variable $results that has some html, like this:
<table>
<tr><td>
id: 45434X
</td></tr>
<tr><td>
id: 95434A
</td></tr>
</table>
In php I'm doing the following:
preg_match_all("/$myregexp/", $results, $matches);
But I get an error. Why is this?
Leif