-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (110 loc) · 3.97 KB
/
Copy pathindex.html
File metadata and controls
120 lines (110 loc) · 3.97 KB
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
119
120
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Egex - Easy Regex</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="wrap">
<header>
<h1>Egex</h1>
<div class="right">
<button class="btn" id="presetBtn">Presets</button>
<button class="btn" id="shareBtn">Share</button>
<button class="btn danger" id="resetBtn">Reset</button>
<button class="btn primary" id="addBtn">Add rule</button>
</div>
</header>
<div class="grid">
<section class="panel">
<div class="ph">
<strong>Builder</strong>
<div class="row">
<span class="small">Mode</span>
<select id="mode">
<option value="build">Build</option>
<option value="raw">Raw</option>
</select>
</div>
</div>
<div class="pb">
<div class="row space">
<div class="row">
<span class="small">Flags</span>
<label class="inlineCheck"><span class="mono">g</span><input type="checkbox" id="fg" checked></label>
<label class="inlineCheck"><span class="mono">i</span><input type="checkbox" id="fi"></label>
<label class="inlineCheck"><span class="mono">m</span><input type="checkbox" id="fm"></label>
<label class="inlineCheck"><span class="mono">s</span><input type="checkbox" id="fs"></label>
<label class="inlineCheck"><span class="mono">u</span><input type="checkbox" id="fu" checked></label>
</div>
<div class="row">
<button class="btn" id="copyRegexBtn">Copy da regex</button>
<button class="btn" id="copyPatBtn">Copy da pattern</button>
</div>
</div>
<div class="regexBox">
<div class="regexLine">
<div class="value mono" id="regexOut">/(?:)/gu</div>
<div class="pill" id="status">…</div>
</div>
<div class="small mono" id="flagsOut">flags: g u</div>
</div>
<div id="rawWrap" style="display:none; margin-top:10px;">
<div class="small">Raw pattern (no surrounding slashes):</div>
<input id="raw" class="mono" type="text" placeholder="e.g. ^\\w+@\\w+\\.\\w+$" style="width:100%;" />
</div>
<div class="rules" id="rules"></div>
</div>
</section>
<section class="panel">
<div class="ph">
<strong>Test</strong>
<div class="row">
<button class="btn" id="exampleBtn">Example</button>
</div>
</div>
<div class="pb">
<textarea id="text" spellcheck="false"></textarea>
<div class="row space" style="margin-top:8px;">
<div class="row" id="matchInfo">
<span class="pill">No regex..</span>
</div>
<label class="inlineCheck">
Groups
<input type="checkbox" id="groups">
</label>
</div>
<div class="preview" id="preview" style="margin-top:8px;"></div>
</div>
</section>
<section class="panel">
<div class="ph">
<strong>Explanation</strong>
</div>
<div class="pb">
<div class="exList" id="explain"></div>
</div>
</section>
<section class="panel">
<div class="ph">
<strong>Export</strong>
<div class="row">
<select id="lang">
<option value="js">JS</option>
<option value="python">Python</option>
<option value="java">Java</option>
</select>
<button class="btn" id="copyExportBtn">Copy export</button>
</div>
</div>
<div class="pb">
<pre id="export"></pre>
</div>
</section>
</div>
</div>
<script src="app.js"></script>
</body>
</html>