Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!newsfeed.straub-nv.de!uucp.gnuu.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <1653533.WIYo4VKPqX@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 22 Jan 2013 18:34:06 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit Subject: Re: RegExp debugging tool Newsgroups: comp.lang.javascript References: Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 36 NNTP-Posting-Date: 22 Jan 2013 18:34:07 CET NNTP-Posting-Host: 48cd18db.newsspool4.arcor-online.net X-Trace: DXC=LXCJenNR:NhOKO]LCQ@0g`4IUK I developed tool which traces the steps needed by JS regular > expression to find matching substring or fail. It shows step by steps > how the regex is applying on the input data. If the engine performs > step backward aka backtracking, the tool indicates for that. That was > primary goal. I was inspired by RegexBuddy and wanted such tool, but > online. I used BESEN's debug mode of RegExp. > > > > The tool is still in beta and any suggestions or bug reports are > welcome. I do not understand why “f*” would first try to match “f” instead of “fff” in “fff”. ISTM that efficiency of the parser could be greatly improved if the latter was the case. Is this due to BESEN? I do not know RegexBuddy, but for visualization you should look into Bastian Bergerhoff's QuickREx [1]. I have always found the highlighting of subexpressions and matching substrings to be useful in Eclipse (and fortunately that extension is still working even in Eclipse 4.3 [Kepler] M4; the only thing it is lacking is support for ECMAScript RE). > Also I think the FAQ of clj should have a link to this tool. Noted for discussion. [1] -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.