Run RXBuild in your browser
Github project page
Purpose
The goal is to provide a useful, crossplatform, light and free toolset for working with regular expressions. RXBuild is a bunch of javascripts and an html main page gluing them together.
Features
-
Edit regular expressions
- With snippets – to insert commonly used patterns
- Insertion of escaped text – to match text litterally without caring about special characters
- Token-list type regular expressions (such as
\ba(bstract|s)|b(ase|ool|reak|yte)\b
) - Have a quick reference readily available – I don’t know about you, but I really hate memorizing syntax.
-
Analyse regular expressions
- Easily test the expression against input text
- Display the regular expression in english form (like a DOM)
- Debug the regular expression (not done yet unfortunately)
-
And use regular expressions
- Export to a variety of programming languages, ready for pasting pleasure
- Export to bash+grep
Run RXBuild
Simply open this link in your favorite browser (or Firefox). If you have a local copy of RXBuild, just open regex.html
.
The page is divided in four parts:
- The top part is the sample input text – this lets you set and edit the text against which you test the regular expression
- The left part has the link to the quick-reference. I’m planning to put the analysers here
- The bottom part shows a tree with current matches for the expression
- The middle/main/right part is the regular expression itself. You use the buttons in the toolbar to edit it. At the far right of the buttons is the current cursor location
Source Code
The project’s source is hosted at http://github.com/ddlsmurf/qsqrcode
To do
The list of features that I intend to implement is in the github wiki todo page
Platforms
The code is tested only with Opera 9.6. Support for Firefox, Safari and IE7+ seems ok though.
Requirements
Should be independent at runtime, however, to build, you need at least JS/CC. The Makefile uses JSDoc to build the documentation and YUI Compressor to reduce the sources size
Compile Instructions
There is no need to compile, unless you are editing the parser’s grammar (src/regex_parser.par
).
See the MakeFile
. Update the paths in Makefile.user
before hoping for anything.
Credits
- Based on the Yahoo User Interface Library
- The parser is built using JS/CC the Parser Generator - Copyright © 2007, 2008 by Jan Max Meyer, J.M.K S.F. Software Technologies
- The quick reference is taken from developer.mozilla.org
Licence and Copyright
'twas written by Eric Doughty-Papassideris
In short (and non legally binding): LGPL. Share or sell, just keep the notice below.
Copyright © 2009 by Eric Doughty-Papassideris
Licences is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Licences is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU General Public License along with Licences. If not, see http://www.gnu.org/licenses/.
Disclaimer
You're getting this for free, and it comes with no garantees whatsoever. It comes as-is. I don't want to know about what happened (or not) because of this code. You are getting it "as-is", and it "is not my problem".