4728
|
1 Test character classes in regexp using regexpengine 0, 1, 2.
|
7
|
2
|
|
3 STARTTEST
|
4728
|
4 /^start-here/+1
|
|
5 Y:s/\%#=0\d//g
|
|
6 p:s/\%#=1\d//g
|
|
7 p:s/\%#=2\d//g
|
|
8 p:s/\%#=0[0-9]//g
|
|
9 p:s/\%#=1[0-9]//g
|
|
10 p:s/\%#=2[0-9]//g
|
|
11 p:s/\%#=0\D//g
|
|
12 p:s/\%#=1\D//g
|
|
13 p:s/\%#=2\D//g
|
|
14 p:s/\%#=0[^0-9]//g
|
|
15 p:s/\%#=1[^0-9]//g
|
|
16 p:s/\%#=2[^0-9]//g
|
|
17 p:s/\%#=0\o//g
|
|
18 p:s/\%#=1\o//g
|
|
19 p:s/\%#=2\o//g
|
|
20 p:s/\%#=0[0-7]//g
|
|
21 p:s/\%#=1[0-7]//g
|
|
22 p:s/\%#=2[0-7]//g
|
|
23 p:s/\%#=0\O//g
|
|
24 p:s/\%#=1\O//g
|
|
25 p:s/\%#=2\O//g
|
|
26 p:s/\%#=0[^0-7]//g
|
|
27 p:s/\%#=1[^0-7]//g
|
|
28 p:s/\%#=2[^0-7]//g
|
|
29 p:s/\%#=0\x//g
|
|
30 p:s/\%#=1\x//g
|
|
31 p:s/\%#=2\x//g
|
|
32 p:s/\%#=0[0-9A-Fa-f]//g
|
|
33 p:s/\%#=1[0-9A-Fa-f]//g
|
|
34 p:s/\%#=2[0-9A-Fa-f]//g
|
|
35 p:s/\%#=0\X//g
|
|
36 p:s/\%#=1\X//g
|
|
37 p:s/\%#=2\X//g
|
|
38 p:s/\%#=0[^0-9A-Fa-f]//g
|
|
39 p:s/\%#=1[^0-9A-Fa-f]//g
|
|
40 p:s/\%#=2[^0-9A-Fa-f]//g
|
|
41 p:s/\%#=0\w//g
|
|
42 p:s/\%#=1\w//g
|
|
43 p:s/\%#=2\w//g
|
|
44 p:s/\%#=0[0-9A-Za-z_]//g
|
|
45 p:s/\%#=1[0-9A-Za-z_]//g
|
|
46 p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
90 p:s/\%#=1\u//g
|
|
91 p:s/\%#=2\u//g
|
|
92 p:s/\%#=0[A-Z]//g
|
|
93 p:s/\%#=1[A-Z]//g
|
|
94 p:s/\%#=2[A-Z]//g
|
|
95 p:s/\%#=0\U//g
|
|
96 p:s/\%#=1\U//g
|
|
97 p:s/\%#=2\U//g
|
|
98 p:s/\%#=0[^A-Z]//g
|
|
99 p:s/\%#=1[^A-Z]//g
|
|
100 p:s/\%#=2[^A-Z]//g
|
7
|
101 :/^start-here/+1,$wq! test.out
|
|
102 ENDTEST
|
|
103
|
|
104 start-here
|
|
105
!"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~
|