...

View Full Version : preg_match_all pattern question



JustinMs66
07-12-2007, 07:01 AM
i have this:


<td>
<%test1%>
<%test2%>
</td>

<td>
<%test3%>
<%test4%>
<%test5%>
</td>


now what i need to do is use preg_match_all to eventually make this kind of an array:


array(2) {
[0]=>
array(2) {
[0]=>
string(9) "<%test1%>"
[1]=>
string(9) "<%test2%>"
}
[1]=>
array(3) {
[0]=>
string(9) "<%test3%>"
[1]=>
string(9) "<%test4%>"
[2]=>
string(9) "<%test5%>"
}
}

2 arrays because of 2 "TD"'s

but everything i try fails. can someone help me out?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum