Regex to match sentences with at least n words

I'm trying to pull all sentences from a text that consist of, say, at least 5 words in PHP. Assuming sentences end with full stop, question or exclamation mark, I came up with this:\[code\] /[\w]{5,*}[\.|\?|\!]/ \[/code\]Any ideas, what's wrong?Also, what needs to be done for this to work with UTF-8?
 
Back
Top