1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>MochiRegExp - JavaScript Regular Expression (RegExp) Explorer
</title>
5 <link href=
"mochiregexp.css" rel=
"stylesheet" type=
"text/css" />
6 <script type=
"text/javascript" src=
"../../MochiKit/MochiKit.js"></script>
7 <script type=
"text/javascript" src=
"mochiregexp.js"></script>
11 MochiRegExp - JavaScript Regular Expression (RegExp) Explorer
15 This demo does
"live" Regular Expression matching to help you
16 toy with JavaScript Regular Expressions.
18 <a href=
"http://mochikit.com">MochiKit
</a>'s
19 <a href=
"../../doc/html/MochiKit/DOM.html">MochiKit.DOM
</a>
20 to manipulate the display and
21 <a href=
"../../doc/html/MochiKit/Async.html">MochiKit.Async
</a>
22 to facilitate the
"half a second" live updating.
25 The table will update while you're typing if you're idle for
26 half a second or when you tab away from the field, whichever
27 comes first. If you enter an invalid RegExp, the RegExp label
28 will turn
<span class=
"error">red
</span> (the
"error" class).
29 For a good JavaScript's RegExp reference, see
30 <a href=
"http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Regular_Expressions">Regular Expressions
</a>
31 over at
<a href=
"http://developer.mozilla.org">DevMo
</a>.
35 <form id=
"regexp_form">
41 <th><label id=
"lab_text" for=
"inp_text">Input Text:
</label></th>
42 <td><input id=
"inp_text" name=
"text" type=
"text" class=
"textbox" size=
"80" /></td>
45 <th><label id=
"lab_regexp" for=
"inp_regexp">RegExp:
</label></th>
46 <td><input id=
"inp_regexp" name=
"regexp" type=
"text" class=
"textbox" size=
"80" /></td>
50 <td><input type=
"reset" value=
"Clear" /></td>
58 <a href=
"index.html" class=
"view-source">index.html
</a> |
59 <a href=
"mochiregexp.js" class=
"view-source">mochiregexp.js
</a>
62 <table class=
"datagrid">
70 <tfoot class=
"invisible"><tr><td colspan=
"3"></td></tr></tfoot>
71 <tbody id=
"result_body"><tr><td colspan=
"3"></td></tr></tbody>