/
index.html
76 lines (65 loc) 路 2.67 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>Regexify (live JavaScript RegEx tester)</title>
<link rel="icon" type="image/x-icon" href="img/favicon.ico">
<!-- only for DEBUG -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" href="bower_components/jquery.auto-grow/src/auto-grow.css">
<link rel="stylesheet" href="css/style.css">
<!-- end for DEBUG -->
<!-- only for PRODUCTION
<link rel="stylesheet" href="css/main.min.css">
end for PRODUCTION -->
</head>
<body hidden>
<h1 class="page-header">Regexify <small>live JavaScript RegEx tester</small></h1>
<section id="pattern">
<label for="regex">Pattern</label>
<div>
<div>
<textarea spellcheck="false" autofocus id="regex" class="form-control" rows="1">>([^<]+)<</textarea>
<small class="text-danger" id="regex-error"></small>
</div>
<div class="btn-group" id="flags">
<button class="btn btn-default" title="case sensitivity">i</button>
<button class="btn btn-default active" title="global match (find all matches rather than stopping after the first match)">g</button>
<button class="btn btn-default" title="multiline (match the beginning or end of each line (delimited by \n or \r), not only the very beginning or end of the whole input string)">m</button>
</div>
<div>
<button class="btn btn-default" id="copy">copy</button>
</div>
</div>
</section>
<section>
<label for="haystack">Input</label>
<textarea spellcheck="false" id="haystack" class="form-control"><html>
<body>
Hello World!
</body>
</html></textarea>
</section>
<section>
<label>Matches</label>
<table class="table table-striped table-hover table-condensed" id="matches">
</table>
</section>
<!-- only for DEBUG -->
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/bootstrap/js/button.js"></script>
<script src="bower_components/jquery.auto-grow/src/jquery.auto-grow.js"></script>
<script src="bower_components/regex-colorizer/regex-colorizer.js"></script>
<script src="bower_components/zeroclipboard/ZeroClipboard.js"></script>
<script src="js/escape.js"></script>
<script src="js/pattern.js"></script>
<script src="js/haystack.js"></script>
<script src="js/matches.js"></script>
<script src="js/regexify.js"></script>
<!-- end for DEBUG -->
<!-- only for PRODUCTION
<script src="js/base.min.js"></script>
end for PRODUCTION -->
</body>
</html>