How can I use one regular expression to replace all town words with village , preserving the case of the first letter of each match?
Input Example:
Towns are small cities. I live in a town.
Required Conclusion:
Villages are small cities. I live in a village.
source share