08-12-2010, 12:09 PM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Aug 2009
Location: Pretoria, South Africa
Posts: 11
Thanks: 0
|
Regex help needed :(
Ive been struggling with this for days, ive got a regex pattern which strips domain names from text, but its only giving me the last one matched.
/[[:alnum:]-]+\..{2,5}(?:\..{2,5})?(?:$|(?=\/))/i
Sample Text:
'mydomain.com anotherdomain.com and here is another domain, with a google.com'
Any help would be appreciated
|
|
|