Welcome Guest, Not a member yet? Register   Sign In
EmailDetect Library - A simple solution to detect emails into strings.
#10

[eluser]Armorfist[/eluser]
[quote author="gungbao" date="1221190956"]would be glad if I could help.
well, I am not a regex-guru and without my nice oreilly book, i do have only the basics on mind.
but

'^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}^'

has a syntax.error (the final ^) and should better try the modified one

'[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}'

the eregi() should grep out all matched emails in the $regs-array
http://www.php.net/manual/de/function.eregi.php

have fun with regular expression, they are extremely powerful (e.g. see backtracking features. & more)
[/quote]
I'm just starting to learn regex, would it really help to buy a book? You mentioned the O'reilly one, I think I'll give it a try.
[quote author="gungbao" date="1221190956"]
BTW - you homepage is nicely designed
[/quote]
Thanks Wink


Messages In This Thread
EmailDetect Library - A simple solution to detect emails into strings. - by El Forum - 09-11-2008, 04:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB