Commit f7581c555e75fe87d2f624ee27761aed1fd1e3d8

Authored by David René
1 parent c84e38dc

fix the regular expression to be more compliant with RFC. The domain must at lea…

…st has 'dot location' for example "name.com"
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
anubis_dev/library/lexical_analysis/example.lexer
... ... @@ -9,7 +9,7 @@ read tools/basis.anubis
9 9 purpose. Actually, this expression is too naïve. A real one would be more complicated.
10 10  
11 11 #email_tester
12   -[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*@[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)* {(ls,token(text))}
  12 +[a-zA-Z0-9\-_]+(\.[a-zA-Z0-9\-_]+)*@[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+ {(ls,token(text))}
13 13 #
14 14  
15 15 Since '@' is a normal character, a string needs to contain exactly one '@' for being
... ...