[PHP] Can I use a function within an ereg_replace?

2001-04-03 Thread Dan Wilson
Hey all, I'm trying to mangle email addresses to pass to an email sending form and want to use a custom hashing function within an eregi_replace. Example: $text = eregi_replace("[my big email regex]", "send.php?addr=" . hash_func("\\1@\\2.\\3"), $text); I can't seem to get this to work... it

[PHP] phpPgAdmin 2.4 Release -- Enhances Security

2002-01-19 Thread Dan Wilson
critical features such as browsing table data, editing and deleting rows, primary and unique key administration and a reports utility to keep your most commonly used queries handy. -Dan Wilson and the phpPgAdmin Development Team -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

[PHP] phpPgAdmin joins SourecForge

2001-10-19 Thread Dan Wilson
For full story, please visit http://sourceforge.net/forum/forum.php?forum_id=117841 It looks like a previous post didn't go through, so if this is a duplicate, please forgive me. -Dan [EMAIL PROTECTED] http://sourceforge.net/projects/phppgadmin -- PHP General Mailing List

[PHP] More Email ereg Validation

2001-04-04 Thread Dan Wilson
I'm trying to parse the different "parts" of an email address both for validation and munging. I have the following regex: ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3}) This works great, except it doesn't accept the country code domains (.au, etc). So I changed the number of characters to {2,3}

Re: [PHP] More Email ereg Validation

2001-04-05 Thread Dan Wilson
: [EMAIL PROTECTED] says... : }I'm trying to parse the different "parts" of an email address both for : }validation and munging. : } : }I have the following regex: : }([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{3}) : } : }This works great, except it doesn't accept the country code domains (.au, :

Re: [PHP] More Email ereg Validation

2001-04-05 Thread Dan Wilson
: : Here's a quick patch.. =3D) : : ([a-z0-9_\.\-]+)@([a-z0-9\.-]+).([a-z]{2}[a-z]?) : Does anyone else (a regex guru) have any other suggestions? : I'm by no means an reg-exp-expert (hate these things) : /[a-z0-9_.-]+@+[a-z0-9._-]+\.[a-z]{2,4}/i : should do. : -fkr And the winner is.