talsraviv/Regex-Tester — pull request #1 by bgunton (2011-12-23 07:25:28+00:00)
Title: Trying out this Git flow...

So yo,

I made some changes and added a few more test cases.

Changes:

- Regular expressions can now be pasted verbatim as written in JavaScript (meaning, comments are okay, the before and after "/"s are okay, etc...). But array enclosures [ ] are not okay.

- For expressions that fail, the parts that failed are highlighted in red and the parts that matched are highlighted in green. (If all expressions fail, the highlighting corresponds to the last expression.)

- Added total expressions being tested, and total number of strings being tested.

- You need to press enter when doing live changes. But, since blank lines are parsed out, everything still works (unless the blank line is in the middle of an expression).

Todo:

- If all expressions fail, show the highlighting for each expression to know which one is closest. Then you can work directly on tweaking that expression.

- Be able to select which specific extensions to test. This would help instead of manually deleting expressions from the text area.