Hi I want to remove certain words from a long string, there problem is that some words end with "s" and some start with a capital, basically I want to turn:
"Hello cat Cats cats Dog dogs dog fox foxs Foxs"
into:
"Hello"
at the moment I have this code but I want to improve on it, thanks in advance:
.replace("foxs", "")
.replace("Fox", "")
.replace("Dogs", "")
.replace("Cats", "")
.replace("dog", "")
.replace("cat", "")
(?i)and(?i)\s(?:fox|dog|cat)s?