I'm trying to remove words that feature a "com" and ends with a ".". I would like to remove the full word and leave the "."
Here is an example of the starting text:
This is a test testcom.
I would like the output to be:
This is a test .
What I have come up with so far is:
(?<=\ ).*?com(?=\.)
but this seems to highlight the full sentence to the first space.
