Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18207

Re: RegExp debugging tool

Message-ID <1653533.WIYo4VKPqX@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-01-22 18:34 +0100
Subject Re: RegExp debugging tool
Newsgroups comp.lang.javascript
References <a3084ac0-9d57-49f8-9c6c-5be48f4ae3ba@y8g2000vbb.googlegroups.com>
Followup-To comp.lang.javascript

Followups directed to: comp.lang.javascript

Show all headers | View raw


Asen Bozhilov wrote:

> 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.
> 
> <URL:http://www.regexter.com/>
> 
> 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]
<http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/toc.html>

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

RegExp debugging tool Asen Bozhilov <asen.bozhilov@gmail.com> - 2013-01-22 08:40 -0800
  Re: RegExp debugging tool Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-22 18:34 +0100
    Re: RegExp debugging tool Asen Bozhilov <asen.bozhilov@gmail.com> - 2013-01-22 10:00 -0800

csiph-web