in reply to pattern search then remove duplicacy
BTW, A single period in a regex matches any single character, so if you want to match just a period you'll need to escape that, '\.', or you might not get the results you're expecting.