summaryrefslogtreecommitdiffstats
path: root/src/util/ip_match.ref
blob: 04b291f0e05d280ec112f9f8a0a72968ad931a5b (plain)
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
> 1.2.3.4
Code: 1.2.3.4
> 1.2.300.4
Error: need decimal number 0..255 or "[" at "1.2.>300<.4"
> 1.2.3000.4
Error: need decimal number 0..255 or "[" at "1.2.>3000<.4"
> 1.2.3.
Error: need decimal number 0..255 or "[" at "1.2.3.><"
> 1.2.3
Error: need "." at "1.2.3><"
> a
Error: need decimal number 0..255 or "[" at ">a<"
> 1.2.3;4
Error: need "." at "1.2.3>;<4"
> 1.2.[3].4
Code: 1.2.[3].4
> 1.2.[].4
Error: need decimal number 0..255 at "1.2.[>]<.4"
> 1.2.[.4
Error: need decimal number 0..255 at "1.2.[>.<4"
> 1.2.].4
Error: need decimal number 0..255 or "[" at "1.2.>]<.4"
> 1.2.[1..127;128..255].5
Code: 1.2.[1..127;128..255].5
> 1.2.[1-255].5
Error: need ";" or "]" at "1.2.[1>-<255].5"
> 1.2.[1..127.128..255].5
Error: need ";" or "]" at "1.2.[1..127>.<128..255].5"
> 1.2.3.[4]
Code: 1.2.3.[4]
> 1.2.3.[4..1]
Error: numeric range error at "1.2.3.[4..>1<]"
> 1.2.3.[4.1]
Error: numeric range error at "1.2.3.[4.>1<]"
> 1.2.3.[4.x]
Error: numeric range error at "1.2.3.[4.>x<]"
> 1.2.3.[x]
Error: need decimal number 0..255 at "1.2.3.[>x<]"
> 1.2.3.4x
Error: garbage after pattern at "1.2.3.4>x<"
> 1.2.[3..11].5	1.2.3.5	1.2.2.5	1.2.11.5 1.2.12.5  1.2.11.6
Code: 1.2.[3..11].5
Match 1.2.3.5: yes
Match 1.2.2.5: no
Match 1.2.11.5: yes
Match 1.2.12.5: no
Match 1.2.11.6: no
> 1.2.[3;5;7;9;11].5	1.2.3.5	1.2.2.5	1.2.4.5 1.2.11.5 1.2.12.5  1.2.11.6
Code: 1.2.[3;5;7;9;11].5
Match 1.2.3.5: yes
Match 1.2.2.5: no
Match 1.2.4.5: no
Match 1.2.11.5: yes
Match 1.2.12.5: no
Match 1.2.11.6: no
> [1;2].3.4.5 1.3.4.5 2.3.4.5 3.3.4.5
Code: [1;2].3.4.5
Match 1.3.4.5: yes
Match 2.3.4.5: yes
Match 3.3.4.5: no
> [[1;2].3.4.5] 1.3.4.5 2.3.4.5 3.3.4.5
Code: [1;2].3.4.5
Match 1.3.4.5: yes
Match 2.3.4.5: yes
Match 3.3.4.5: no
> [[1;2].3.4.5
Error: missing "]" character
> 1;2].3.4.5
Error: need "." at "1>;<2].3.4.5"