in reply to Re: Match last instance of pattern
in thread Match last instance of pattern

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

Replies are listed 'Best First'.
Re^3: Match last instance of pattern
by ccn (Vicar) on Nov 05, 2008 at 22:29 UTC
    It depends... How do you compare one JAPH with another?