Are the two reverses (and backward words) better to use than just matching everything before the last </table>?
perl -0777 -pe 's!(.*)</table>!${1}REPLACE!s;' test.htm
In reply to Re^2: Match last instance of pattern
by lostjimmy
in thread Match last instance of pattern
by techie411
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |