mirror of
https://github.com/chillout2k/ldap-acl-milter.git
synced 2025-12-12 19:00:19 +00:00
7 lines
262 B
Python
7 lines
262 B
Python
import re
|
|
|
|
# globaly used regex definitions
|
|
g_rex_domain = re.compile(r'^\S*@(\S+)$')
|
|
# http://emailregex.com/ -> Python
|
|
g_rex_email = re.compile(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)")
|
|
g_rex_srs = re.compile(r"^SRS0=.+=.+=(\S+)=(\S+)\@.+$") |