Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 209 lines (199 sloc) 6.519 kb
9bca336 @jonmagic First commit. Functions but probably has bugs.
authored
1 <html>
2 <head>
3 <title>Scriptular</title>
5ca7b60 @jonmagic Completely reworked how the app is compiled/developed.
authored
4 <link rel="stylesheet" type="text/css" href="application.css">
894bb1e @jonmagic Style and functionality updates.
authored
5 <link href='http://fonts.googleapis.com/css?family=Reenie+Beanie' rel='stylesheet' type='text/css'>
5ca7b60 @jonmagic Completely reworked how the app is compiled/developed.
authored
6 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
7 <script src="spine.js" type="text/javascript"></script>
8 <script src="application.js" type="text/javascript"></script>
83e653a @jonmagic Test suite added and first 3 tests passing.
authored
9 <script>
10 $(function() {
11 new App();
12 });
13 </script>
9bca336 @jonmagic First commit. Functions but probably has bugs.
authored
14 </head>
15 <body>
894bb1e @jonmagic Style and functionality updates.
authored
16 <div id="container">
17 <div id="header">
18 <h1>Scriptular</h1>
19 <h2>A javascript regular expression editor</h2>
9bca336 @jonmagic First commit. Functions but probably has bugs.
authored
20 </div>
894bb1e @jonmagic Style and functionality updates.
authored
21 <div id="main">
22 <div id="expression">
8d3c3c5 @bkeepers Redesign
bkeepers authored
23 <h2>Regular Expression:</h2>
894bb1e @jonmagic Style and functionality updates.
authored
24 /<input name="expression" />/<input name="option" />
25 </div>
9bca336 @jonmagic First commit. Functions but probably has bugs.
authored
26
894bb1e @jonmagic Style and functionality updates.
authored
27 <div id="test_strings">
8d3c3c5 @bkeepers Redesign
bkeepers authored
28 <h2>Test Strings:</h2>
894bb1e @jonmagic Style and functionality updates.
authored
29 <textarea name="test_strings"></textarea>
30 </div>
31
32 <div id="intro">
00427f7 @jonmagic New and better copy. Fixes issue #1
authored
33 <p>Scriptular is a javascript regular expression editor. Inspired by <a href="http://rubular.com" target="_blank">Rubular</a> it gives you a simple way to test javascript regular expressions as you write them.</p>
894bb1e @jonmagic Style and functionality updates.
authored
34
00427f7 @jonmagic New and better copy. Fixes issue #1
authored
35 <p>Start by entering a regular expression and then a test string. Or give this <a href="#" id="example">example a try</a>.</p>
894bb1e @jonmagic Style and functionality updates.
authored
36
f1f3f3e @bentruyman Updated "Learn More" link to reference MDN's article on Regular Expressi...
bentruyman authored
37 <p><a href="https://developer.mozilla.org/en/JavaScript/Guide/Regular_Expressions" target="_blank">Learn more</a> about regular expressions in javascript.</p>
894bb1e @jonmagic Style and functionality updates.
authored
38 </div>
39
40 <div id="error">
41 <p>No Matches</p>
42 </div>
43
44 <div id="output">
8d3c3c5 @bkeepers Redesign
bkeepers authored
45 <h2>Match Results:</h2>
894bb1e @jonmagic Style and functionality updates.
authored
46 <ul id="results"></ul>
8d3c3c5 @bkeepers Redesign
bkeepers authored
47 <h2>Match Groups:</h2>
894bb1e @jonmagic Style and functionality updates.
authored
48 <ul id="groups"></ul>
5ce9a27 @johnkpaul add sharing ability for the current state of App as link in output secti...
johnkpaul authored
49 <h2>Share Link:</h2>
0685651 @jonmagic Updated share link styles in preparation for Facebook/Twitter buttons.
authored
50 <ul id="shares">
51 <li><a id="share_link" href="">Share this regular expression</a></li>
52 </ul>
894bb1e @jonmagic Style and functionality updates.
authored
53 </div>
9bca336 @jonmagic First commit. Functions but probably has bugs.
authored
54 </div>
55
ee6280d @jonmagic Added quick reference.
authored
56 <div id="quick_reference">
57 <div class="scrollable">
58 <h2>Modifiers:</h2>
59 <table>
60 <tr>
61 <td class="regex">i</td>
62 <td>Perform case-insensitive matching</td>
63 </tr>
64 <tr>
65 <td class="regex">g</td>
66 <td>Perform a global match</td>
67 </tr>
68 </table>
69 <h2>Brackets:</h2>
70 <table>
71 <tr>
72 <td class="regex">[abc]</td>
73 <td>Match a single character a, b, or c</td>
74 </tr>
75 <tr>
76 <td class="regex">[^abc]</td>
77 <td>Match any character except a, b, or c</td>
78 </tr>
79 <tr>
80 <td class="regex">[A-z]</td>
81 <td>Match any character from uppercase A to lowercase z</td>
82 </tr>
83 <tr>
84 <td class="regex">(ab|cd|ef)</td>
85 <td>Match either ab, cd, or ef</td>
86 </tr>
87 <tr>
88 <td class="regex">(...)</td>
89 <td>Capture anything enclosed</td>
90 </tr>
91 </table>
92 <h2>Metacharacters</h2>
93 <table>
94 <tr>
95 <td class="regex">^</td>
96 <td>Start of line</td>
97 </tr>
98 <tr>
99 <td class="regex">$</td>
100 <td>End of line</td>
101 </tr>
102 <tr>
103 <td class="regex">.</td>
104 <td>Match any character</td>
105 </tr>
106 <tr>
107 <td class="regex">\w</td>
108 <td>Match a word chracter</td>
109 </tr>
110 <tr>
111 <td class="regex">\W</td>
112 <td>Match a non-word character</td>
113 </tr>
114 <tr>
115 <td class="regex">\d</td>
116 <td>Match a digit</td>
117 </tr>
118 <tr>
119 <td class="regex">\D</td>
120 <td>Match any non-digit character</td>
121 </tr>
122 <tr>
123 <td class="regex">\s</td>
124 <td>Match a whitespace character</td>
125 </tr>
126 <tr>
127 <td class="regex">\S</td>
128 <td>Match a non-whitespace character</td>
129 </tr>
130 <tr>
131 <td class="regex">\b</td>
132 <td>Match character at the beginning or end of a word</td>
133 </tr>
134 <tr>
135 <td class="regex">\B</td>
136 <td>Match a character not at beginning or end of a word</td>
137 </tr>
138 <tr>
139 <td class="regex">\0</td>
140 <td>Match a NUL character</td>
141 </tr>
142 <tr>
143 <td class="regex">\t</td>
144 <td>Match a tab character</td>
145 </tr>
146 <tr>
147 <td class="regex">\xxx</td>
148 <td>Match a character specified by octal number xxx</td>
149 </tr>
150 <tr>
151 <td class="regex">\xdd</td>
152 <td>Match a character specified by hexidecimal number dd</td>
153 </tr>
154 <tr>
155 <td class="regex">\uxxxx</td>
156 <td>Match a Unicode character specified by hexidecimal number xxxx</td>
157 </tr>
158 </table>
159 <h2>Quantifiers</h2>
160 <table>
161 <tr>
162 <td class="regex">n+</td>
163 <td>Match at least one n</td>
164 </tr>
165 <tr>
166 <td class="regex">n*</td>
167 <td>Match zero or more n's</td>
168 </tr>
169 <tr>
170 <td class="regex">n?</td>
171 <td>Match zero or one n</td>
172 </tr>
173 <tr>
174 <td class="regex">n{X}</td>
175 <td>Match sequence of X n's</td>
176 </tr>
177 <tr>
178 <td class="regex">n{X,Y}</td>
179 <td>Match sequence of X to Y n's</td>
180 </tr>
181 <tr>
182 <td class="regex">n{X,}</td>
183 <td>Match sequence of X or more n's</td>
184 </tr>
185 </table>
186 </div>
187 </div>
188
894bb1e @jonmagic Style and functionality updates.
authored
189 <div id="footer">
0bb0737 @jonmagic http to https for git repo url
authored
190 <p>Made by <a href="http://theprogrammingbutler.com">Hoyt</a>. To contribute or report an issue visit <a href="https://github.com/jonmagic/scriptular">GitHub</a>. Follow me on <a href="http://twitter.com/jonmagic">Twitter</a>.</p>
9bca336 @jonmagic First commit. Functions but probably has bugs.
authored
191 </div>
192 </div>
fd7ceec @jonmagic Add Gauges script.
authored
193
194 <script type="text/javascript">
195 var _gauges = _gauges || [];
196 (function() {
197 var t = document.createElement('script');
198 t.type = 'text/javascript';
199 t.async = true;
200 t.id = 'gauges-tracker';
201 t.setAttribute('data-site-id', '4f542216cb25bc2358000006');
202 t.src = '//secure.gaug.es/track.js';
203 var s = document.getElementsByTagName('script')[0];
204 s.parentNode.insertBefore(t, s);
205 })();
206 </script>
9bca336 @jonmagic First commit. Functions but probably has bugs.
authored
207 </body>
5ce9a27 @johnkpaul add sharing ability for the current state of App as link in output secti...
johnkpaul authored
208 </html>
Something went wrong with that request. Please try again.