finding the last instance of a string
Posted: Wed Jun 10, 2009 8:06 pm
Hello,
I have many files containing text like:
%ENDSECTION{name="operatoraddrsection1"}%
%ENDSECTION{name="operatoraddrsection2"}%
%ENDSECTION{name="operatoraddrsection3"}%
There might be any number of these lines (each with a different number at the end, depending on how many are in that particular file) .
I want to add a line of text just after the LAST one of these in each file by using search and replace -- but ... how can Textpad find which is the last one?
Thanks!
I have many files containing text like:
%ENDSECTION{name="operatoraddrsection1"}%
%ENDSECTION{name="operatoraddrsection2"}%
%ENDSECTION{name="operatoraddrsection3"}%
There might be any number of these lines (each with a different number at the end, depending on how many are in that particular file) .
I want to add a line of text just after the LAST one of these in each file by using search and replace -- but ... how can Textpad find which is the last one?
Thanks!