-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredaction_patterns.json
More file actions
25 lines (24 loc) · 901 Bytes
/
Copy pathredaction_patterns.json
File metadata and controls
25 lines (24 loc) · 901 Bytes
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
{
"common": {
"address_start_pattern": "(\\bAdd\\b|\\bAddress\\b|\\bEnrolment\\b)",
"address_end_pattern": "\\b\\d{6}\\b",
"phone_no_pattern": "\\b\\d{10}\\b",
"dob_pattern": "\\b(0[1-9]|[12][0-9]|3[01])[-\\/](0[1-9]|1[0-2])[-\\/]\\d{4}\\b",
"name_pattern":"\\b(Name|Name :)\\b",
"fathers_name_pattern":"\\b(Father's Name|Father' s Name|S/O:|S/D/W)\\b"
},
"Aadhaar Card": {
"vid_pattern": "\\b\\d{4}\\s\\d{4}\\s\\d{4}\\s\\d{4}\\b",
"aadhar_pattern": "^(?:\\d{4} \\d{4} \\d{4})(?! \\d{4})$"
},
"Driving License": {
"license_pattern": "\\b[A-Z]{2}[-]?[0-9]{2}\\s?[0-9]{11,13}\\b"
},
"Voter ID": {
"voter_id_pattern": "\\b[A-Z]{3}\\d{7}\\b"
},
"PAN Card": {
"pan_pattern": "\\b[A-Z]{5}[0-9]{4}[A-Z]\\b",
"dob_pattern": "\\b(0[1-9]|[12][0-9]|3[01])[-\\/](0[1-9]|1[0-2])[-\\/]\\d{4}\\b"
}
}