-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.json
118 lines (118 loc) · 3.42 KB
/
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
[
{
"name": "OS name",
"reg": "(windows|mac(?:intosh|os)?|linux|Linux|ubuntu|Ubuntu|debian|Debain|fedora|Fedora|red hat|Red hat|centos|Centos|android|Andriod|ios|IOS)\\b"
},
{
"name": "Browser Name",
"reg": "(chrome|Chrome|firefox|FireFox|Mozilla|safari|Safari|opera|Opera|Edge|edge|ie|IE)\\b"
},
{
"name": "Name",
"reg": "^[a-zA-Z\\s'-]+$"
},
{
"name": "Indian Phone Number",
"reg": "^(?:\\+91|0)?[6789]\\d{9}$"
},
{
"name": "International Phone Number",
"reg": "^\\+?[1-9][0-9]{7,14}$"
},
{
"name": "Bank Account Number",
"reg": "^\\d{18}$"
},
{
"name": "Credit Card Number",
"reg": "^(?:4[0-9]{12}(?:[0-9]{3})?|[25][1-7][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35d{3})d{11})$"
},
{
"name": "Debit Card",
"reg": "/^((?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12})|(4[0-9]{12}(?:[0-9]{3})?)$/gm"
},
{
"name": "User Email",
"reg": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
},
{
"name": "Address",
"reg": "^(\\d{1,}) [a-zA-Z0-9\\s]+(\\,)? [a-zA-Z]+(\\,)? [A-Z]{2} [0-9]{5,6}$"
},
{
"name": "URL",
"reg": "^(http|https)://(?:\\d{1,3}\\.){3}\\d{1,3}(?::\\d+)?(?:/.*)?$"
},
{
"name": "URL",
"reg": "^(?:(?:https?|ftp):\\/\\/)?(?:www\\.)?[a-zA-Z0-9\\-]+\\.[a-zA-Z]{2,}(?:\\/[a-zA-Z0-9\\/\\%?=&#.-]*)?$"
},
{
"name": "IP Address",
"reg": "\\b(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b"
},
{
"name": "MAC Address",
"reg": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"
},
{
"name": "IMSI",
"reg": "^[0-9]{5,15}$"
},
{
"name": "Date",
"reg": "\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}"
},
{
"name": "Zip code",
"reg": "^[0-9]{5}(?:-[0-9]{4})?$"
},
{
"name": "SSN",
"reg": "^(?!666|000|9\\d{2})\\d{3}-(?!00)\\d{2}-(?!0{4})\\d{4}$"
},
{
"name": "Driving License",
"reg": "^(([A-Z]{2}[0-9]{2})( )|([A-Z]{2}-[0-9]{2}))((19|20)[0-9][0-9])[0-9]{7}$"
},
{
"name": "Internation Driving License",
"reg": "^[A-Z](?:d[- ]*){14}$"
},
{
"name": "Gender",
"reg": "/^(male|female|Male|Female|prefer not to say)$/i"
},
{
"name": "Internation Passport number",
"reg": "^(?!^0+$)[a-zA-Z0-9]{3,20}$"
},
{
"name": "Financial information",
"reg": "(^|[s(])($|€|£|¥|₹|₽|₺|₴|₱|₿|﷼|₣|₢|₧|₤|₸|₮|₦|₩|₲|₵|₡|₯|₪|₫|₣|₶|₠|₢|₣|₤|₥|₧|₨|₪|₫|€|₭|₮|₯|₰|₷|₹|₺|₻|₼|₽|₾|₿|₠|₡|₢|₣|₤|₥|₦|₧|₨|₩|₪|₫|€|₭|₮|₯|₰|₱|₲|₳|₴|₵|₶|₷|₸|₹|₺|₻|₼|₽|₾|₿)($|[s)])"
},
{
"name": "Geolocation (Latitude)",
"reg": "^(\\+|-)?(?:90(?:\\.(?:0{1,6})?)?|(?:[0-9]|[1-8][0-9])(?:\\.(?:[0-9]{1,6})?))$"
},
{
"name": "Geolocation (Longitude)",
"reg": "^(\\+|-)?(?:180(?:(?:\\.0{1,6})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\\.[0-9]{1,6})?))$"
},
{
"name": "Indian Vechical Registration Number",
"reg": "^([A-Z|a-z]{2}s{1}d{2}s{1}[A-Z|a-z]{1,2}s{1}d{1,4})?([A-Z|a-z]{3}s{1}d{1,4})?$"
},
{
"name": "IMEI",
"reg": "\\d{2}-\\d{6}-\\d{6}-\\d{2}"
},
{
"name": "Addhar Card",
"reg": "^d{4}sd{4}sd{4}$"
},
{
"name": "PAN CARD",
"reg": "[A-Z]{5}[0-9]{4}[A-Z]{1}"
}
]