Search: <table((.|\n)+?)</table>
Replace: <div class="center"><div class="ilb">\n<table$1</table>\n</div></div>
Text:
<table class="p1" summary="Errors in the books"> <tr> <td class="tdl">An overstatement of net income of</td> <td class="tdr">$2,721,068</td></tr> <tr> <td class="tdl">A mischarge of worn-out equipment to profit and loss of</td> <td class="tdr">2,843,596</td></tr> </table>
Result:
<div class="center"><div class="ilb"> <table class="p1" summary="Errors in the books"> <tr> <td class="tdl">An overstatement of net income of</td> <td class="tdr"> ,721,068</td></tr> <tr> <td class="tdl">A mischarge of worn-out equipment to profit and loss of</td> <td class="tdr">2,843,596</td></tr> </table> </div></div>
The error occurs in the fourth line of the original text: <td class="tdr">$2,721,068</td>
has been split into two lines and the "$2" at the beginning of the number '"$2,721,068" has been deleted.
The error is repeatable with the example given above, but does not occur every time there is a $ sign in a table: it only happens occasionally. The project in question has 169 cells containing $ signs, but only two were altered this way, and in the other affected table, it occurred in the fourth row, not in the first.
Anonymous
Turns out the error occurs frequently, not just twice, and the missing information always seems to be "$2", whether followed by another digit or by a comma. But, it doesn't occur every time nor in every table.