Please help me , I want to do it with PHP,MySql
Suppose we have a sentence
"A grammatical unit that is syntactically independent and has a subject that is expressed"
I want to retrieve all data which matches with any consecutive five words in the above sentence, that is
"A grammatical unit that is" OR
"grammatical unit that is syntactically" OR
"unit that is syntactically independent" OR etc etc
Can we do with regex match or any easy solution?
Looking forward to you
Thanks