forked from gskinner/regexr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
413 lines (367 loc) · 18.9 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
<!DOCTYPE html>
<html>
<head>
<title>RegExr: Learn, Build, & Test RegEx</title>
<script>
if(self !== top) { top.location = self.location; }
</script>
<meta name="description" content="Regular expression tester with syntax highlighting, contextual help, video tutorial, reference, and searchable community patterns." />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="user-scalable=yes">
<!-- Windows8 Pin to home. -->
<meta name="application-name" content="RegExr"/>
<meta name="msapplication-TileColor" content="#44A4E0"/>
<meta name="msapplication-TileImage" content="assets/windows8/mediumtile.png" />
<meta name="msapplication-square70x70logo" content="assets/windows8/smalltile.png"/>
<meta name="msapplication-square150x150logo" content="assets/windows8/mediumtile.png"/>
<meta name="msapplication-wide310x150logo" content="assets/windows8/widetile.png"/>
<meta name="msapplication-square310x310logo" content="assets/windows8/largetile.png"/>
<link rel="shortcut icon" href="regexrFavicon.ico"/>
<!-- Only use these tags during a build. -->
<!-- <% if (build) { %> -->
<script src="js/regExWorker.template.js?no=<%=noCache %>"></script>
<script src="js/scripts.min.js?no=<%=noCache %>"></script>
<!-- <% } else { %> -->
<!--
Remove these tags during a build.
** If you add anything here, also add it to scripts.json **
-->
<script src="js/third-party/codemirror.js"></script>
<script src="js/utils/Utils.js"></script>
<script src="js/documentation.js"></script>
<script src="js/third-party/promise-0.1.1.js"></script>
<script src="js/third-party/ZeroClipboard.js"></script>
<script src="js/third-party/classList.js"></script>
<script src="js/third-party/store.js"></script>
<script src="js/third-party/placeholders.min.js"></script>
<script src="js/third-party/history.adapter.native.js"></script>
<script src="js/third-party/history.js"></script>
<script src="js/RegExJS.js"></script>
<script src="js/events/Event.js"></script>
<script src="js/events/EventDispatcher.js"></script>
<script src="js/Tracking.js"></script>
<script src="js/BrowserHistory.js"></script>
<script src="js/events/DataEvent.js"></script>
<script src="js/events/TransitionEvents.js"></script>
<script src="js/Settings.js"></script>
<script src="js/controls/Rating.js"></script>
<script src="js/controls/TagInput.js"></script>
<script src="js/utils/CMUtils.js"></script>
<script src="js/controls/Tooltip.js"></script>
<script src="js/utils/TextUtils.js"></script>
<script src="js/SourceHighlighter.js"></script>
<script src="js/ExpressionHighlighter.js"></script>
<script src="js/ExpressionHover.js"></script>
<script src="js/views/Favorites.js"></script>
<script src="js/views/Community.js"></script>
<script src="js/views/DocView.js"></script>
<script src="js/views/LibView.js"></script>
<script src="js/controls/List.js"></script>
<script src="js/views/FlagsMenu.js"></script>
<script src="js/views/ShareMenu.js"></script>
<script src="js/views/SaveMenu.js"></script>
<script src="js/utils/Docs.js"></script>
<script src="js/RegExLexer.js"></script>
<script src="js/SubstLexer.js"></script>
<script src="js/net/ServerModel.js"></script>
<script src="js/net/ExpressionModel.js"></script>
<script src="js/net/CommunityModel.js"></script>
<script src="js/net/TagsModel.js"></script>
<!-- <% } %> -->
<link rel="stylesheet" href="css/regexr.css?no=<%=noCache %>">
<script src="//ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3579542-6', 'regexr.com');
ga('send', 'pageview', '/');
</script>
</head>
<body>
<div class="top">
<h1 class="icon regexr-logo"></h1><h1 class="regexr-text">RegExr</h1><span class="version regexr-text">v2.0<span class="beta-banner hidden">BETA</span></span>
<div class="links">
by <a href="http://twitter.com/gskinner/" target="_blank">gskinner</a>
<a href="./v1/" target="_blank">RegExr v1</a>
<a href="http://github.com/gskinner/regexr/" target="_blank">GitHub</a>
<a class="video-link">Tutorial</a>
</div>
</div>
<div class="lib hidden" id="libview">
<div class="title">
<span class="button noicon" data-icon="">Library</span>
</div>
<div class="community hidden">
<div class="search">
<span class="search-icon"></span><input type="text" class="search-input" placeholder="Search" tabindex="1" />
</div>
<div class="tag-list-container">
<div class="tag-list" tabindex="2">
<div class="renderer item"><span>{{getLabel()}}</span></div>
</div>
</div>
<div class="community-list" tabindex="3">
<div class="renderer item"><pre class="label">{{getLabel()}}</pre><div class="rating rating-list">{{getStaticRating()}}</div></div>
</div>
<!-- Template for the content. -->
<div class='community-content hidden'>
<div class="header">
<div class="favorite icon"></div>
<div class='load icon all'></div>
<div class="rating rating-content"></div>
</div>
<div class="scroll">
<pre class="description"></pre>
<p class="author"></p>
<hr/>
<div class='load icon expr'></div>
<code class="expression"></code>
<hr/>
<div class="preview-wrap">
<div class='load icon source'></div>
<code class="preview"></code>
<hr/>
</div>
<div class="substitution-wrap">
<h1 class="substitution-title">Substitution</h1>
<hr/>
<div class='load icon subst'></div>
<code class="substitution"></code>
</div>
</div>
</div>
</div>
<div class="list" tabindex="0">
<div class="renderer item"><span class="icon">{{getIcon()}}</span>{{getLabel()}}<span class="detail">{{getDetail()}}</span></div>
</div>
<div class="content">
<b>RegExr is an online tool to <b>learn</b>, <b>build</b>, & <b>test</b> Regular Expressions (RegEx / RegExp).</b>
<hr/>
<ul>
<li>Results update in <b>real-time</b> as you type.</li>
<li><b>Roll over</b> a match or expression for details.</li>
<li><b>Save</b> & <b>share</b> expressions with others.</li>
<li>Explore the <b>Library</b> for help & examples.</li>
<li><b>Undo</b> & <b>Redo</b> with {{getCtrlKey()}}-Z / Y.</li>
<li>Search for & rate <b>Community</b> patterns.</li>
</ul>
</div>
<div id="cheatsheet">
<table class="cheatsheet">
<tr><th colspan="2" onclick="regexr.libView.show('charclasses')">Character classes</th></tr>
<tr><td>.</td><td>any character except newline</td></tr>
<tr><td>\w \d \s</td><td>word, digit, whitespace</td></tr>
<tr><td>\W \D \S</td><td>not word, digit, whitespace</td></tr>
<tr><td>[abc]</td><td>any of a, b, or c</td></tr>
<tr><td>[^abc]</td><td>not a, b, or c</td></tr>
<tr><td>[a-g]</td><td>character between a & g</td></tr>
<tr><th colspan="2" onclick="regexr.libView.show('anchors')">Anchors</th></tr>
<tr><td>^abc$</td><td>start / end of the string</td></tr>
<tr><td>\b</td><td>word boundary</td></tr>
<tr><th colspan="2" onclick="regexr.libView.show('escchars')">Escaped characters</th></tr>
<tr><td>\. \* \\</td><td>escaped special characters</td></tr>
<tr><td>\t \n \r</td><td>tab, linefeed, carriage return</td></tr>
<tr><td>\u00A9</td><td>unicode escaped ©</td></tr>
<tr><th colspan="2" onclick="regexr.libView.show('groups')">Groups & Lookaround</th></tr>
<tr><td>(abc)</td><td>capture group</td></tr>
<tr><td>\1</td><td>backreference to group #1</td></tr>
<tr><td>(?:abc)</td><td>non-capturing group</td></tr>
<tr><td>(?=abc)</td><td>positive lookahead</td></tr>
<tr><td>(?!abc)</td><td>negative lookahead</td></tr>
<tr><th colspan="2" onclick="regexr.libView.show('quants')">Quantifiers & Alternation</th></tr>
<tr><td>a* a+ a?</td><td>0 or more, 1 or more, 0 or 1</td></tr>
<tr><td>a{5} a{2,}</td><td>exactly five, two or more</td></tr>
<tr><td>a{1,3}</td><td>between one & three</td></tr>
<tr><td>a+? a{2,}?</td><td>match as few as possible</td></tr>
<tr><td>ab|cd</td><td>match ab or cd</td></tr>
</table>
</div>
</div>
<div class="doc subst-disabled" id="docview">
<div class="title expr">
Expression
<ul class="buttonbar">
<li class="button share" data-icon="">share</li> <!-- share: E309, new win: E152 -->
<li class="button save" data-icon="">save</li> <!-- file: E359, bookmark: E073-->
<li class="button flags" data-icon="">flags</li>
</ul>
</div>
<div class="editor expr"><div class="results"></div></div>
<div class="title source">
Text
</div>
<div class="editor source">
<div class="measure"></div>
<canvas class="canvas" width="1" height="1"></canvas>
<textarea class="default">
Welcome to RegExr v2.0 by gskinner.com!
Edit the Expression & Text to see matches. Roll over matches or the expression for details. Undo mistakes with {{ctrl}}-z. Save & Share expressions with friends or the Community. A full Reference & Help is available in the Library, or watch the video Tutorial.
Sample text for testing:
abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789 +-.,!@#$%^&*();\/|<>"'
12345 -98.7 3.141 .6180 9,000 +42
555.123.4567 +1-(800)-555-2468
www.demo.com http://foo.co.uk/
http://regexr.com/foo.html?q=bar
</textarea>
</div>
<div class="title subst">
Substitution
<ul class="buttonbar">
<li class="button nolabel" data-icon="" data-alticon=""></li>
</ul>
</div>
<div class="editor subst"></div>
<div class="editor substres"></div>
<div class="menu flags">
<header>
Expression Flags
<ul class="buttonbar">
<li class="button help" data-icon=""></li>
</ul></header>
<hr/>
<a class="check" data-flag="i"> ignore case <code>(i)</code></a><br/>
<a class="check" data-flag="g"> global <code>(g)</code></a><br/>
<a class="check" data-flag="m"> multiline <code>(m)</code></a><br/>
</div>
<div class="menu share">
<header>
Share
</header>
<hr />
<div id="shareLinkView">
<input type="text" id="shareLinkTxt">
<a id="shareCopyLink">Copy Link<br/><br/></a>
<p id="noFlashCopyText">Press <span class="copyKeyLabel">Ctrl</span>+C to copy your link.</p>
</div>
<div id="saveView">
<p><a id="showSaveLink">Save</a> your pattern before sharing.</p>
</div>
<header>Copy</header>
<hr />
<a id="copyExpression">Expression</a>
|
<a id="copyPattern">Pattern</a>
|
<a id="copyJavascript">Javascript</a>
<div id="copyMessageView" class="hidden">
<hr />
<code id="copyTxt"></code><br/>
Copied to clipboard.
</div>
<div id="noFlashCopyView" class="hidden">
<hr />
<input id="noFlashCopyInput" type="text"><br/>
Press <span class="copyKeyLabel">dynamic</span>-C to copy.
</div>
</div>
<div class="menu save">
<header>
Save
</header>
<hr />
<div id="saveView" class="hidden">
<div class="public-wrap">
<header class="sub-header">
Add to
</header>
<hr/>
<a id="publicChk" class="check"> Community</a><br/>
<a id="favouriteChk" class="check"> Favourites</a><br/>
<hr/>
</div>
<div class="save-details-wrap hidden">
<label for="titleTxt">name</label> <span id="titleTxt-req">*</span><br />
<input id="titleTxt" type="text" max="30" maxlength="30" required><br />
<label for="descriptionTxt">description</label><br />
<textarea id="descriptionTxt" rows="3" max="250" maxlength="250"></textarea> <br />
<label for="tagsTxt">tags</label><br />
<input id="tagsTxt" type="text" max="50" maxlength="50"><br />
<div class="tag-list-container">
<div class="tag-list" tabindex="2">
<div class="renderer item"><span>{{getLabel()}}</span></div>
</div>
</div>
<label for="authorTxt">author</label><br />
<input id="authorTxt" type="text" max="20" maxlength="20"><br />
</div>
<input id="saveBtn" type="button" class="save-button" value="Save">
<input id="updateBtn" type="button" class="update-button" value="Update">
<div id="errorMessage" class="error-default">
<hr />
<p>There was an error saving your pattern.</p>
<p>Please try again later.</p>
</div>
</div>
<div class="success hidden">
Pattern saved. You can now <a id="showShareLink">share</a> your pattern.
</div>
<div class="no-changes hidden">
No changes since last save.
</div>
</div>
</div>
<div class="video hidden">
<!--
*******************************
*** Note the ?enablejsapi=1 ***
*******************************
It's required so we can play and pause the video.
-->
<iframe width="854" height="510" src="//www.youtube.com/embed/fOH62XXGdLs?enablejsapi=1" frameborder="0" allowfullscreen></iframe>
</div>
<!-- White spinner with an #242429 background. Used in the Community and Favourites header. -->
<img class="hidden spinner" src="data:image/gif;base64,R0lGODlhEAAQAPYkAODg4enp6YCAg7S0tXFxdDAwNGBgYykpLktLTycnLDY2OyUlKi4uMzw8QE1NUYmJi1JSVpiYm5GRlIKChb6+v46OkFRUV2hobEFBRTMzOG9vcsDAwUlJTSoqLywsMWFhZTU1OT8/Q9vb3GVlaCQkKXJydjExNkJCR6mpq6ioqj09QsjIykZGSlBQVPPz81lZXJ+foYeHioyMj1xcYPj4+IWFiLy8vkhITGxsb5WVl8/P0JycnsPDxFVVWcrKy9TU1X19gHZ2efDw8KOjpW1tcbm5utbW193d3nl5fF5eYt/f36urrXh4e4SEhqamqIqKjZeXmdPT1GpqbeTk5Pf392Zmajg4PcXFxre3uVpaXrCwsu7u7n5+gU5OUs3Nz6+vsFdXW8HBw7u7vDo6Puzs7ZqanKSkpvX19URESPHx8pOTlq2tr3R0d9jY2dnZ2uvr6+Xl5tHR0rKytPr6+mNjZ+Li452doJCQkrW1t6Gho8fHyMzMzQAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAAEAAQAEAHjIAkgoOEhYI8OiaGggsOHII3PHA1hgkZGQuDSWtfTAgeHRgvJRcqhSV7aWc0ggkHmYNLIkmLJB0hY4IlPDG1HDOmhA0fQ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s0wrKCeqS1UgIAZQUVcjqkZULlsBU0dFF7MOTxRKIgMCLIwCAQAh+QQFCgADACwBAAEADgAOAAAHgIAkggsFYywcLA0egowHICoYNw4WLz0NjAkmCiYdJAsmLB90IYIeBQeMjCc4IyYLHaipjD1BDgsJsqkqQBe5sh01Ar6pHRU1PDS9vjdQTDJnKcNsMEkIOlsxuRcod5dsAAF2BhkmYE14KS+MJVd1R0Y6Kxt5M7I3AmsrPDAlGIyBACH5BAUKAAAALAEAAQAOAA4AAAd/gCSCJAsHDCYmDAmDjAkdDBlWKioFg0yMggcZaCwZJA4/NJiCIA4cHU9nKKOCGGAqNmlVrCQZMy1KWyC0CSMGIgG7rAc4VQNTH7QqbEkCSmW0SUAONzZtSKNgMSW7Uj5eMj0FDA4aajEIg1VfVxtYWikwNV2YJyVQa04xH2ODgQA7" />
<!-- White spinner used in the community search. -->
<img class="hidden spinner white" src="data:image/gif;base64,R0lGODlhEAAQAPYkAN7e3ufn6HZ2eK6ur2ZmaB8fIlNTVRgYGz09QBYWGScnKhQUFx4eICwsLz8/QYCAgURER5CQkomJinh4erm5uoWFh0ZGSV1dXzIyNSMjJmRkZru7vDs7PhoaHRwcH1VVVyUlKDAwM9jY2VlZWxMTFmhoaiEhJDQ0NqOjpKGhoi4uMcTExTg4OkNDRfLy80xMTpiYmX5+f4ODhVBQUvj4+Hx8fre3uDk5PGBgYo2NjszMzJSUlb+/v0hISsbGx9HR0nNzdGtrbe/v75ubnWJiZLOztNPT09ra229vcVFRVNzc3aWlpm1tb3p6fJ+foIKCg46OkM/P0F5eYOLi4vb29ltbXSkpK8DAwbKys05OUKqqq+3t7XV1dkFBQ8rKyqioqUpKTL29vrW1tisrLevr65KSlJ2dn/T09DY2OPHx8YuLjKenqGlpa9XV1dfX1+np6eTk5M3Nzqysrfr6+ldXWeDg4JaWl4eHibCwsZqam8LCw8jIyQAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAAEAAQAEAH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IwmCBAnIAkHDVlNTQ4kCSEcCoyMFhUCVgUYqaqMUhFJICods4wcMBMgVruMDCkwJovCJAxaTh4MC8kWWBIJHdDCDxsaJAvXs0wrKCeqS1UgIAZQUVcjqkZULlsBU0dFF7MOTxRKIgMCLIwCAQAh+QQFCgADACwBAAEADgAOAAAHgIAkggsFYywcLA0egowHICoYNw4WLz0NjAkmCiYdJAsmLB90IYIeBQeMjCc4IyYLHaipjD1BDgsJsqkqQBe5sh01Ar6pHRU1PDS9vjdQTDJnKcNsMEkIOlsxuRcod5dsAAF2BhkmYE14KS+MJVd1R0Y6Kxt5M7I3AmsrPDAlGIyBACH5BAUKAAAALAEAAQAOAA4AAAd/gCSCJAsHDCYmDAmDjAkdDBlWKioFg0yMggcZaCwZJA4/NJiCIA4cHU9nKKOCGGAqNmlVrCQZMy1KWyC0CSMGIgG7rAc4VQNTH7QqbEkCSmW0SUAONzZtSKNgMSW7Uj5eMj0FDA4aajEIg1VfVxtYWikwNV2YJyVQa04xH2ODgQA7" />
<div class="not-supported-mobile hidden">
<div class="top">
<h1 class="icon regexr-logo"></h1><h1 class="regexr-text">RegExr</h1><span class="version regexr-text">v2.0</span>
</div>
<div class="content">
<p>RegExr isn't optimized for mobile devices yet. You can still take a look, but it might be a bit quirky.</p>
<a id="closeOverlay"><b>></b> Okay!</a>
</div>
</div>
<div class="not-supported hidden">
<div class="top">
<h1 class="icon regexr-logo"></h1>
<h1 class="regexr-text">RegExr</h1><span class="version regexr-text">v2.0</span>
</div>
<div class="content">
<p>RegExr requires a modern browser. Please update your browser to the latest version and try again.</p>
<p class="flash hidden">If you have Flash support you can still visit <a href="v1/">RegExr version 1</a></p>
</div>
</div>
<!--
To fix showing the "Not supported" screen in IE 7 (and other old browsers).
Since our initial load can cause errors, we just catch them and show the overlay if they happen.
-->
<script>
if (!$.isSupported()) {
var el = document.querySelector(".not-supported");
$.removeClass(el, "hidden");
if (ZeroClipboard.detectFlashSupport()) {
var flash = document.getElementsByClassName('flash')[0];
flash.className = "";
}
} else if($.partialSupport()) {
var el = document.querySelector(".not-supported-mobile");
$.removeClass(el, "hidden");
$.el("#closeOverlay").addEventListener("click", function() {
$.addClass(el, "hidden");
});
}
</script>
<!-- <% if (build) { %> -->
<script>
// injected on build:<%=index %>
</script>
<!-- <% } else { %> -->
<script src="js/index.template.js"></script>
<!-- <% } %> -->
</body>
</html>