This repository has been archived by the owner on Jun 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
match.html
108 lines (108 loc) · 4.62 KB
/
match.html
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
<HTML><HEAD>
<STYLE TYPE="text/css" MEDIA="screen" TITLE="Special paragraph colour">
<!--
SPAN.rematch {text-decoration: underline;}
SPAN.rematchnew {color: green; style: bold; text-face: bold; font-style: bold; background: red}
SPAN.strmatch {text-decoration: underline; background: yellow}
SPAN.strmatchnew {text-decoration: underline;}
-->
</STYLE>
</HEAD><BODY>
<H1>'abc' =~ /abc/</H1>
<TABLE>
<TR><TD><SPAN CLASS="rematchnew">a</SPAN>bc
<TD>=~
<TD><SPAN CLASS="strmatch">a</SPAN><SPAN CLASS="strmatchnew"></SPAN>bc
<TD>states: [0] -> [1]; positions: [] -> [1]; index = 0
<TR><TD><SPAN CLASS="rematch">a</SPAN><SPAN CLASS="rematchnew">b</SPAN>c
<TD>=~
<TD><SPAN CLASS="strmatch">ab</SPAN><SPAN CLASS="strmatchnew"></SPAN>c
<TD>states: [1] -> [2]; positions: [1] -> [2]; index = 1
<TR><TD><SPAN CLASS="rematch">a</SPAN><SPAN CLASS="rematch">b</SPAN><SPAN CLASS="rematchnew">c</SPAN>
<TD>=~
<TD><SPAN CLASS="strmatch">abc</SPAN><SPAN CLASS="strmatchnew"></SPAN>
<TD>states: [2] -> [3]; positions: [1, 2] -> [3]; index = 2
</TABLE>
<H1>'ab' !~ /abc/</H1>
<TABLE>
<TR><TD><SPAN CLASS="rematchnew">a</SPAN>bc
<TD>=~
<TD><SPAN CLASS="strmatch">a</SPAN><SPAN CLASS="strmatchnew"></SPAN>b
<TD>states: [0] -> [1]; positions: [] -> [1]; index = 0
<TR><TD><SPAN CLASS="rematch">a</SPAN><SPAN CLASS="rematchnew">b</SPAN>c
<TD>=~
<TD><SPAN CLASS="strmatch">ab</SPAN><SPAN CLASS="strmatchnew"></SPAN>
<TD>states: [1] -> [2]; positions: [1] -> [2]; index = 1
<TR><TD COLSPAN=2>Failure
</TABLE>
<H1>'abc' !~ /ab/</H1>
<TABLE>
<TR><TD><SPAN CLASS="rematchnew">a</SPAN>b
<TD>=~
<TD><SPAN CLASS="strmatch">a</SPAN><SPAN CLASS="strmatchnew"></SPAN>bc
<TD>states: [0] -> [1]; positions: [] -> [1]; index = 0
<TR><TD><SPAN CLASS="rematch">a</SPAN><SPAN CLASS="rematchnew">b</SPAN>
<TD>=~
<TD><SPAN CLASS="strmatch">ab</SPAN><SPAN CLASS="strmatchnew"></SPAN>c
<TD>states: [1] -> [2]; positions: [1] -> [2]; index = 1
<TR><TD COLSPAN=2>Failure
</TABLE>
<H1>'ab' =~ /ab|ac/</H1>
<TABLE>
<TR><TD>ab|<SPAN CLASS="rematchnew">a</SPAN>c
<TD>=~
<TD><SPAN CLASS="strmatch">a</SPAN><SPAN CLASS="strmatchnew"></SPAN>b
<TD>states: [0] -> [1]; positions: [] -> [4]; index = 0
<TR><TD>a<SPAN CLASS="rematchnew">b</SPAN>|<SPAN CLASS="rematch">a</SPAN>c
<TD>=~
<TD><SPAN CLASS="strmatch">ab</SPAN><SPAN CLASS="strmatchnew"></SPAN>
<TD>states: [1] -> [2]; positions: [4] -> [2]; index = 1
</TABLE>
<H1>'aaabaabab' =~ /(a*b)*/</H1>
<TABLE>
<TR><TD>(<SPAN CLASS="rematchnew">a</SPAN>*b)*
<TD>=~
<TD><SPAN CLASS="strmatch">a</SPAN><SPAN CLASS="strmatchnew"></SPAN>aabaabab
<TD>states: [0] -> [1]; positions: [] -> [2]; index = 0
<TR><TD>(<SPAN CLASS="rematchnew">a</SPAN>*b)*
<TD>=~
<TD><SPAN CLASS="strmatch">aa</SPAN><SPAN CLASS="strmatchnew"></SPAN>abaabab
<TD>states: [1] -> [1]; positions: [2] -> [2]; index = 1
<TR><TD>(<SPAN CLASS="rematchnew">a</SPAN>*b)*
<TD>=~
<TD><SPAN CLASS="strmatch">aaa</SPAN><SPAN CLASS="strmatchnew"></SPAN>baabab
<TD>states: [1] -> [1]; positions: [2, 2] -> [2]; index = 2
<TR><TD>(<SPAN CLASS="rematch">a</SPAN>*<SPAN CLASS="rematchnew">b</SPAN>)*
<TD>=~
<TD><SPAN CLASS="strmatch">aaab</SPAN><SPAN CLASS="strmatchnew"></SPAN>aabab
<TD>states: [1] -> [0]; positions: [2, 2, 2] -> [4]; index = 3
<TR><TD>(<SPAN CLASS="rematchnew">a</SPAN>*<SPAN CLASS="rematch">b</SPAN>)*
<TD>=~
<TD><SPAN CLASS="strmatch">aaaba</SPAN><SPAN CLASS="strmatchnew"></SPAN>abab
<TD>states: [0] -> [1]; positions: [2, 2, 2, 4] -> [2]; index = 4
<TR><TD>(<SPAN CLASS="rematchnew">a</SPAN>*<SPAN CLASS="rematch">b</SPAN>)*
<TD>=~
<TD><SPAN CLASS="strmatch">aaabaa</SPAN><SPAN CLASS="strmatchnew"></SPAN>bab
<TD>states: [1] -> [1]; positions: [2, 2, 2, 4, 2] -> [2]; index = 5
<TR><TD>(<SPAN CLASS="rematch">a</SPAN>*<SPAN CLASS="rematchnew">b</SPAN>)*
<TD>=~
<TD><SPAN CLASS="strmatch">aaabaab</SPAN><SPAN CLASS="strmatchnew"></SPAN>ab
<TD>states: [1] -> [0]; positions: [2, 2, 2, 4, 2, 2] -> [4]; index = 6
<TR><TD>(<SPAN CLASS="rematchnew">a</SPAN>*<SPAN CLASS="rematch">b</SPAN>)*
<TD>=~
<TD><SPAN CLASS="strmatch">aaabaaba</SPAN><SPAN CLASS="strmatchnew"></SPAN>b
<TD>states: [0] -> [1]; positions: [2, 2, 2, 4, 2, 2, 4] -> [2]; index = 7
<TR><TD>(<SPAN CLASS="rematch">a</SPAN>*<SPAN CLASS="rematchnew">b</SPAN>)*
<TD>=~
<TD><SPAN CLASS="strmatch">aaabaabab</SPAN><SPAN CLASS="strmatchnew"></SPAN>
<TD>states: [1] -> [0]; positions: [2, 2, 2, 4, 2, 2, 4, 2] -> [4]; index = 8
</TABLE>
<H1>'ac' !~ /abc/</H1>
<TABLE>
<TR><TD><SPAN CLASS="rematchnew">a</SPAN>bc
<TD>=~
<TD><SPAN CLASS="strmatch">a</SPAN><SPAN CLASS="strmatchnew"></SPAN>c
<TD>states: [0] -> [1]; positions: [] -> [1]; index = 0
<TR><TD COLSPAN=2>Failure
</TABLE>
</BODY></HTML>