I try to remove dot only from end of each word in given text. (in java) for example:
input: java html. .net node.js php. output: java html .net node.js php
You can do:
String repl = "java html. .net node.js php.".replaceAll("\\.(?!\\w)", ""); // java html .net node.js php