I am trying to get the last table and all its contents using coldfusion,
Here is the kind of structure it has:
<div>
<table><table>
<table></table>
<table></table> - i need this one and all its contents
<div>
how can i do this with regex in coldfusion
here is my try something like this:
<cfset data = rereplace(data,"(?s)(.*?<table.*?>.*?<\/table>.*?)(<table.*?>.*?<\/table>)(.*)","\1\3","ALL") />
but this does seems to be working