-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
114 lines (105 loc) · 4.96 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
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
<!DOCTYPE html>
<html>
<head>
<title>Regularish: a JavaScript regex editor</title>
<meta charset='UTF-8'>
<!--
___ ___ ___ ___ ___ ___ ___ ___ ___ ___
/\ \ /\ \ /\ \ /\__\ /\__\ /\ \ /\ \ /\ \ /\ \ /\__\
/::\ \ /::\ \ /::\ \ /:/ / /:/ / /::\ \ /::\ \ \:\ \ /::\ \ /:/ /
/:/\:\ \ /:/\:\ \ /:/\:\ \ /:/ / /:/ / /:/\:\ \ /:/\:\ \ \:\ \ /:/\ \ \ /:/__/
/::\~\:\ \ /::\~\:\ \ /:/ \:\ \ /:/ / ___ /:/ / /::\~\:\ \ /::\~\:\ \ __ /::\ \ _\:\~\ \ \ /::\ \ ___
/:/\:\ \:\__\:/\:\ \:\__\:/__/_\:\__\:/__/ /\__\:/__/ /:/\:\ \:\__\:/\:\ \:\__\\ \/:/\:\__\\ \:\ \ \__\:/\:\ /\__\
\/_|::\/:/ /:\~\:\ \/__/:\ /\ \/__/:\ \ /:/ /:\ \ \/__\:\/:/ //_|::\/:/ /:\/:/ \/__/:\ \:\ \/__//__\:\/:/ /
|:|::/ / \:\ \:\__\ \:\ \:\__\ \:\ /:/ / \:\ \ \::/ / |:|::/ / \::/__/ \:\ \:\__\ \::/ /
|:|\/__/ \:\ \/__/ \:\/:/ / \:\/:/ / \:\ \ /:/ / |:|\/__/ \:\ \ \:\/:/ / /:/ /
|:| | \:\__\ \::/ / \::/ / \:\__\ /:/ / |:| | \:\__\ \::/ / /:/ /
\|__| \/__/ \/__/ \/__/ \/__/ \/__/ \|__| \/__/ \/__/ \/__/
Regularish: a JavaScript regular expression editor
https://github.com/gavinhungry/regularish
-->
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='description' content='Rubular-inspired JavaScript regular expression editor'>
<meta name='keywords' content='regular expression, regex, regex editor, javascript'>
<link rel='stylesheet' type='text/css' href='https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css'>
<link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css?family=Oleo+Script+Swash+Caps'>
<link rel='stylesheet' type='text/css' href='css/regularish.min.css'>
<script type='application/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js'></script>
<script type='application/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'></script>
<script type='application/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/backbone-min.js'></script>
<script type='application/javascript' src='js/slade.min.js'></script>
<script type='application/javascript' src='js/regularish.min.js'></script>
<script type='application/javascript'>
Regularish.Template.preload(['groups']);
$(function() {
new Regularish.App();
});
</script>
</head>
<body>
<div id='header'>
<h1><a href='/'>Regularish</a></h1>
<h2>: a JavaScript regex editor</h2>
</div>
<div id='tab'>Regex Reference</div>
<div id='drawer' class='slade'>
<div id='reference'>
<table>
<tr>
<td>[a-m]</td><td>Character from a to m</td>
<td>.</td><td>Any character</td>
<td>*</td><td>0 or more</td>
</tr>
<tr>
<td>[N-Z]</td><td>Character from N to Z</td>
<td>\w</td><td>Any word character</td>
<td>+</td><td>1 or more</td>
</tr>
<tr>
<td>[0-6]</td><td>Digit from 0 to 6</td>
<td>\d</td><td>Any digit</td>
<td>?</td><td>0 or 1</td>
</tr>
<tr>
<td>[xyz]</td><td>x or y or z</td>
<td>\s</td><td>Any whitespace character</td>
<td>{4}</td><td>Exactly 4</td>
</tr>
<tr>
<td>[^a]</td><td>Not a</td>
<td>\b</td><td>Word boundry</td>
<td>{4,}</td><td>4 or more</td>
</tr>
<tr>
<td>[^xy]</td><td>Not x or y</td>
<td>\x52</td><td>Hex character 0x52 (R)</td>
<td>{4,7}</td><td>Between 4 and 7</td>
</tr>
<tr>
<td>(ab|xy)</td><td>ab or xy</td>
<td>\130</td><td>Octal character 130 (X)</td>
<td>(...)</td><td>Capture group</td>
</tr>
</table>
<div class='clear'></div>
</div>
</div>
<div id='app'>
<div id='regex'>
<input id='pattern' type='text' placeholder='Regular Expression Pattern'>
<input id='flags' type='text' placeholder='Flags'>
<textarea id='string' placeholder='Input Strings'></textarea>
<div id='notice' class='slade'>
<input id='error' type='text' readonly>
</div>
<pre id='matches'></pre>
<div id='groups'></div>
</div>
</div>
<div id='footer'>
Created by <a href='https://gavinhungry.net'>Gavin Lloyd</a>.
Inspired by <a href='http://rubular.com'>Rubular</a>.
Code on <a href='https://github.com/gavinhungry/regularish'>GitHub</a>.
</div>
</body>
</html>