Identifies tokens which look like emails and flags them with the "EMAIL" flag.
Operates On: Lexical Items with TOKEN
Currently handles the following situations:
Local part could contain letters, digits and symbols except square/angle brackets, exclamation/question mark and quotes
Local part cannot start or finish with period (.). Also it cannot have repeated periods in the middle
Quotes are permitted if entire local part is quoted. When quoted, any symbol is permitted except for exclamation and question marks
Domain part could contain only letters, digits and the symbol dot (.) and/or dash (-)
Symbols dot (.) and dash (-) cannot be placed at the beginning or the end. Also they cannot be repeated in the middle
Domain could also be an IP v4 number
V--------------[please send an email to [email protected] thank you ]---------------V ^-[please]-V-[send]-V-[an]-V-[email]-V-[to]-V-[[email protected]]-V-[thank]-V-[you]-^ ^-----------[{email}]------------^