Jump to content

[SOLVED] Is this example right?


phpknight

Recommended Posts

I am reading the definitive guide to Apache mod_rewrite.  The author (p. 14) gives a faulty email validator as

 

.+@+\..+

 

He then says this pattern will match many addresses but also @@@.@ and @.com.  I understand the first claim, but would the second example really match?  .+@ means one or more characters followed by the @ symbol, but @.com has NO characters and then the @ symbol.

 

Is he mistaken, or am I missing something here?

Link to comment
https://forums.phpfreaks.com/topic/63442-solved-is-this-example-right/
Share on other sites

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.