-
Remove words from string
Trying to come up with an expression that will remove whole words from a string. Removing characters is easy using substr, but not sure if there is a better method for removing whole words.
str = "This is just an example.";
remove = 2;
output = "This is just"