Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val userPartRfc2822 = """([A-Za-z0-9+_.-]+)"""
- val userPartRfc2822OrSpace = """([A-Za-z0-9+_.-]+| )"""
- val atInform = """(@informatik.haw-hamburg.de)"""
- val dotUnderscore = """(.|_)"""
- val gmail = """(@gmail.com)"""
- val googlemail = """(@googlemail.com)"""
- // _?_@informatik.haw-hamburg.de
- val firstPattern = (userPartRfc2822OrSpace+dotUnderscore+userPartRfc2822OrSpace+atInform).r
- // _@informatik.haw-hamburg.de
- val secondPattern = (userPartRfc2822+atInform).r
- //_#@informatik.haw-hamburg.de
- val thirdPattern = (userPartRfc2822+"""(\d)"""+atInform).r
- //_._@gmail.com oder _@googlemail.com
- val fourthPattern = (userPartRfc2822OrSpace+"""(\.)"""+userPartRfc2822OrSpace+gmail).r
- val fifthPattern = (userPartRfc2822+googlemail).r
- //_._@_.de oder _._@_.com
- val sixthPattern = (userPartRfc2822OrSpace+"""(\.)"""+userPartRfc2822OrSpace+"""(@)"""+userPartRfc2822+"""(\.de|\.com)""").r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement