I need to find part of string which is equal to string till end of word.
Example i have texts:
- "Start play. I need..."
- "Start playstation play"
- "start play, work"
- "start player"
- "start pay with..."
Then i searching for "/^start play/'i" and found all phrases, but i need only phrases which ends with word play: 1, 3, 5
preg_match('/^start play/i', $text, $key_matches)
I can write in MySQL REGEXP it would be "^Start play[[:>:]]" [[:>:]] - means end of word, but i cant find how to write in PHP?
Can some one help me?