Hi,
I'm need to extract all the embedded URL references from the following text:
Blessing the Bridge: What Animals Teach Us about Death, Dying and Beyond, by Rita Reynolds, NewSage Press, 2001. http://www.amazon.com/exec/obidos/ASIN/0939165384/selfhealingexpre The Soul of Your Pet: Evidence for the Survival of Animals after Death, by Scott S. Smith, Holmes Publishing Group, 1998. http://www.amazon.com/exec/obidos/ASIN/1558184023/selfhealingexpre Dogs Have Souls Too, by George and Emily Watson, PMD Publishing, 2001. http://www.amazon.com/exec/obidos/ASIN/0967487501/selfhealingexpre http://www.dogshavesouls.com For Every Dog An Angel, by Christine Davis, Lighthearted Press, 1997. http://www.amazon.com/exec/obidos/ASIN/0965922502/selfhealingexpre For Every Cat An Angel, by Christine Davis, Lighthearted Press, 2001. http://www.amazon.com/exec/obidos/ASIN/0965922510/selfhealingexpre
I'm using preg_match_all("|http.+|i", $text, $matches); But it stops on the first match.
I'm weak in regular expressions but am attempting to learn. Can anyone tell me what I need to add or take away from the regx
Many thanks,
Rodney