forked from luizomf/regexp-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aula15.py
70 lines (65 loc) · 1.96 KB
/
aula15.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
"""
Básica
^\w+(?:[.\-+!%]\w+)*@\w+(?:[.\-]\w+)+$
https://regex101.com/r/9s4bgv/1/
Básica 2
^[^\s@<>\(\)[\]\.]+(?:\.[^\s@<>\(\)\[\]\.]+)*@\w+(?:[\.\-_]\w+)*$
https://regex101.com/r/mH4ChC/2/
rfc 5322
^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$
https://regex101.com/r/fkxI15/1/
"""
emails = """
Valid email addresses
user%[email protected]
"email"@example.com
Invalid email addresses
Abc.example.com
a"b(c)d,e:f;g<h>i[j\k][email protected]
just"not"[email protected]
this is"not\[email protected]
this\ still\"not\\[email protected]
plainaddress
#@%^%#$@#$@#.com
@example.com
email.example.com
email@[email protected]
あいうえお@example.com
email@example
”(),:;<>[\]@example.com
just”not”[email protected]
this\ is"really"not\[email protected]
"""