Jump to content

ereg email code example please thank you.


redarrow

Recommended Posts

Hi all iam currently learnig regular exspressions, Can some one kindly post the code for a ereg email exspression and exsplain it so i can study it cheers.

example

[code]

[email protected]

"^[A-Z a-z](@)[A-z a-z].()[A-Z a-z]$"

[/code]

^ = At beginig
[A-Z a-z] large and small letters
(@) = letter @
[A-Z a-z] large and small letters
. = wild card
() letters for wild card
[A-Z a-z] large and small letters
$ = end of letters


This is for email in ereg format [email protected]
Link to comment
https://forums.phpfreaks.com/topic/6495-ereg-email-code-example-please-thank-you/
Share on other sites

You can find lots of differnt ones at:
[a href=\"http://www.regexlib.net\" target=\"_blank\"]http://www.regexlib.net[/a]

Very nice site:
[a href=\"http://www.regular-expressions.info\" target=\"_blank\"]http://www.regular-expressions.info[/a]

Great program and worth the $30 USD price:
[a href=\"http://regexbuddy.com\" target=\"_blank\"]http://regexbuddy.com[/a]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.