Thread: [Solved] Removing a duplicate words
View Single Post
 
Old 08-25-2021, 02:07 PM
ranjan ranjan is offline Windows 10 Office 2019
Advanced Beginner
 
Join Date: May 2021
Posts: 77
ranjan is on a distinguished road
Default

Hi,

Could you please review the above one, is there any change in the FIND String to get replace with this conditions...

Input: financial income income
Input: interest income
Input : gain from sales
Input : income income From gain gain

Output: financial income
Output: interest income
Output: gain from sales
Output: income From gain

Only starting line items were get replaced, if there is any same double line items at the end it will not get replaced.

Find = (<*>?@)\1
Replace = \1

With the above command only highlighted bold one get replaced even though we are having repeated words at the end of the line.

Please check and do the needful...
Reply With Quote