Im trying to take a string of text and remove any word thats under 3 letters. I would like to do this with a regular expression. I could only get as far as matching the words and then putting them into an array using the regular expression: "/\w{3,25}/". I dont want them in an array, I want them just removed ouf of the text. Example would be:
"hello this is a test - string" would end up as "hello this test string".
Thanks in advance.