[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

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

2001-04-03 Thread Lindsay Adams
On 4/3/01 11:06 AM, "Dan Wilson" [EMAIL PROTECTED] wrote: 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=" .

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

2001-04-03 Thread Christian Reiniger
On Tuesday 03 April 2001 20:06, you wrote: 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"),

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

2001-04-03 Thread Lindsay Adams
On 4/3/01 11:06 AM, "Dan Wilson" [EMAIL PROTECTED] wrote: 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=" .