Hep Needed: Converting EREG function into PREG_MATCH
Posted: Tue Aug 10, 2004 1:02 pm
As stated in the title, I have the following code:
I read the PREG_MATCH is quicker than EREG but I figured I dont know anything about Perl Regular Expression thing... Could someone convert it for me? Obviously first code is to validate usernames, second is e-mail. If someone is also able to give me a good website to learn Perl Reg Exp thing please tell me.
Thanks again!

Code: Select all
ereg("^їA-Za-z0-9]+їA-Za-z0-9_]*їA-Za-z0-9]$", $usr)Code: Select all
ereg("^їA-Za-z]+ї.A-Za-z0-9_]*@їA-Za-z0-9]+ї.A-Za-z0-9]*ї.A-Za-z0-9]?$", $infoї'email'])Thanks again!