Welcome Guest, Not a member yet? Register   Sign In
Finding URL & Email text in a string?
#5

[eluser]dejan[/eluser]
Why not use the second solution I provided? E.g. this piece of code:

foreach (preg_split(’/\b/’, $string) as $token) {
if (filter_var($token, FILTER_VALIDATE_EMAIL)) return $token;
}


Messages In This Thread
Finding URL & Email text in a string? - by El Forum - 08-16-2012, 06:34 AM
Finding URL & Email text in a string? - by El Forum - 08-16-2012, 07:54 AM
Finding URL & Email text in a string? - by El Forum - 08-16-2012, 09:08 AM
Finding URL & Email text in a string? - by El Forum - 08-17-2012, 03:28 PM
Finding URL & Email text in a string? - by El Forum - 08-17-2012, 11:08 PM
Finding URL & Email text in a string? - by El Forum - 08-17-2012, 11:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB