I have a regex that tries to match for 2 or more words, but it isn\'t working as it\'s suppose to. What am I doing wrong?
$string = \"i dont know , do you know?\
This one should work: ~([\w']+(\s+|[^\w\s])){2,}~g, which also match string like "I do!"
~([\w']+(\s+|[^\w\s])){2,}~g
"I do!"
Test it here