Find and replace by a dictionary, using keys only once
问题 This is a follow-up of Find multiple keywords within a dictionary. My questions are... The first is: I believe this matches words that are not whole. Like if short is in my dictionary it matches the word shortly. How would I stop this? And the second not so important but would be nice is: How would I make it so it only matches once per content? So short doesn't get defined twice within the same content area. Thanks! 回答1: I have implemented the following additional requirements: Do not match