php grab http or www links from text and return full url |
[eluser]Randy Casburn[/eluser]
Interesting. Is this free text uncontrolled? My point is this: you need to determine what rules you'll use as delimiters for your search whether that's via regex or strstr() or whatever. For example I can easily grab your example string: www.functionplace.com?id=1324354 but miss your requirement totally for something like: http://functionplace.com?id=1324354&rabbit=jumpedOutOfAHat Just a thought, Randy |
Welcome Guest, Not a member yet? Register Sign In |