I think looking at how other similar projects is a good start to understanding how to build an awesome web based regular expression editor. - http://sourceforge.net/projects/regex-util/?source=navbar - http://www.regexper.com - http://www.debuggex.com - http://www.pcreck.com/JavaScript (except it is broken)