forked from alfredodeza/ci-cd-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregex-rules.json
197 lines (197 loc) · 4.54 KB
/
regex-rules.json
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
[
[
"\\b[0-9]{3}-[0-9]{2}-[0-9]{4}\\b",
"SSN",
"Standard SSN format"
],
[
"\\b[0-9]{3}\\-[0-9]{2}\\-[0-9]{4}\\b",
"SSN",
"SSN with dashes"
],
[
"\\b[0-9]{3} [0-9]{2} [0-9]{4}\\b",
"SSN",
"SSN with spaces"
],
[
"\\b[0-9]{3}\\.[0-9]{2}\\.[0-9]{4}\\b",
"SSN",
"SSN with periods"
],
[
"\\b[0-9]{9}\\b",
"SSN",
"SSN without separators"
],
[
"\\b[0-9]{4}-[0-9]{4}-[0-9]{4}\\b",
"CC",
"Standard credit card format"
],
[
"\\b[0-9]{4}\\-[0-9]{4}\\-[0-9]{4}\\b",
"CC",
"Credit card with dashes"
],
[
"\\b[0-9]{4} [0-9]{4} [0-9]{4}\\b",
"CC",
"Credit card with spaces"
],
[
"\\b[0-9]{4}\\.[0-9]{4}\\.[0-9]{4}\\b",
"CC",
"Credit card with periods"
],
[
"\\b[0-9]{12}\\b",
"CC",
"Credit card without separators"
],
[
"\\b[0-9]{4}-[0-9]{6}-[0-9]{5}\\b",
"CC",
"American Express format"
],
[
"\\b[0-9]{4}\\-[0-9]{6}\\-[0-9]{5}\\b",
"CC",
"American Express with dashes"
],
[
"\\b[0-9]{4} [0-9]{6} [0-9]{5}\\b",
"CC",
"American Express with spaces"
],
[
"\\b[0-9]{15}\\b",
"CC",
"American Express without separators"
],
[
"\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b",
"Email",
"Standard email format"
],
[
"\\b[_A-Za-z0-9.-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b",
"Email",
"Allow underscores in username"
],
[
"\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b",
"Email",
"Allow numbers in domain name"
],
[
"\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+-[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b",
"Email",
"Allow dash in domain name"
],
[
"\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b",
"Email",
"Allow + sign in username"
],
[
"\\b[A-Za-z0-9._%+'+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}\\b",
"Email",
"Allow apostrophe in username"
],
[
"\\b[0-9]{3}-[0-9]{3}-[0-9]{4}\\b",
"Phone",
"Standard phone number format"
],
[
"\\b[0-9]{3} [0-9]{3} [0-9]{4}\\b",
"Phone",
"Phone number with spaces"
],
[
"\\b[0-9]{3}\\.[0-9]{3}\\.[0-9]{4}\\b",
"Phone",
"Phone number with dots"
],
[
"\\b([0-9]{3}) ([0-9]{3}) ([0-9]{4})\\b",
"Phone",
"Phone number with parentheses"
],
[
"\\b[0-9]{10}\\b",
"Phone",
"Phone number without separators"
],
[
"\\b[0-9]{3}-[0-9]{3}-[0-9]{4}\\b",
"Phone",
"Allow dash in area code"
],
[
"\\b([0-9]{3})[0-9]{3}-[0-9]{4}\\b",
"Phone",
"Allow parantheses in area code"
],
[
"\\b[0-9]{3}-?[0-9]{3}-?[0-9]{4}\\b",
"Phone",
"Dashes allowed between any digits"
],
[
"\\b[0-9]{3}-?[0-9]{3}-[0-9]{4}\\b",
"Phone",
"Dashes allowed in area code"
],
[
"\\b[0-9]{3}-[0-9]{3}-?[0-9]{4}\\b",
"Phone",
"Dashes allowed in local number"
],
[
"\\b[0-9]{3}-?[0-9]{3}-?[0-9]{4}\\b",
"Phone",
"Dashes allowed in both area code and local"
],
[
"\\b[0-9]+ [A-Za-z0-9\\s]+, [A-Za-z]+(?: [A-Za-z]+)?, [A-Z]{2}\\b",
"Address",
"Address with city and state"
],
[
"\\b[0-9]+ [A-Za-z0-9\\s]+, [A-Za-z]+(?: [A-Za-z]+)?, [A-Z]{2} [0-9]{5}\\b",
"Address",
"Address with street, city, state zip"
],
[
"\\b[0-9]+ [A-Za-z0-9\\s]+\\b",
"Address",
"Simple street address"
],
[
"\\b[0-9]+ [A-Za-z0-9\\s]+ (St|Rd|Ave|Blvd)\\b",
"Address",
"Street address with street type"
],
[
"\\b[0-9]+ [A-Za-z0-9\\s]+, [A-Za-z]+, [A-Z]{2} [0-9]{5}\\b",
"Address",
"Full address with street, city, state zip"
],
[
"\\b[0-9]+ [A-Za-z0-9\\s]+, (St|Rd|Ave|Blvd|Ct|Cir|Wy|Pkwy|Street|Road|Avenue|Boulevard|Court|Circle|Way|Parkway)",
"Address",
"Mix of abbreviations and full street names"
],
[
"\\b(PO Box|P\\.O\\. Box) [0-9]+\\b",
"Address",
"Allow PO Boxes"
],
[
"\\b[A-Z][a-z]{1,15}\\s[A-Z][a-z]{1,15}\\b",
"Person",
"First and last name"
]
]