[Solved] Words extraction [closed]


preg_match_all('/[a-z]+:\/\/\S+/', $string, $matches);

This is an easy way that’d work for a lot of cases, not all. All the matches are put in $matches.

Here is a link on using regular expressions in PHP: http://www.regular-expressions.info/php.html. Also, here is a link for email regular expressions: http://www.regular-expressions.info/email.html

Good luck.

1

solved Words extraction [closed]