Q: How to remove words (count limited to 3 chars) of a string in PHP
Example String: “Remove all words of 3 letters”
Expected String: “Remove words letters”
Basically, remove all words that are less than equal to 3 counts.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the word boundry:
Jack’s answer only matched all and of.
This expression looks for the word boundaries and will match on that.