phpknight Posted August 5, 2007 Share Posted August 5, 2007 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 More sharing options...
phpknight Posted August 5, 2007 Author Share Posted August 5, 2007 Actually, I have figured it out. The example in the book is definitely wrong. Link to comment https://forums.phpfreaks.com/topic/63442-solved-is-this-example-right/#findComment-316188 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.