Reputation: 799
I have to search all words from a string with regular expression character in php. i am using preg_match_all('/\b.*?\b/i', $string, $matchWords)
;
but it search all words character in the different position.
e.g suppose string is "India is my country". I have to search i
It should result "India" and "is". Please help me
Upvotes: 1
Views: 96