RegexPal: Web-Based Regex Testing Reinvented
At the moment, RegexPal is fairly short on features, but here are the highlights:
- Real-time regex syntax highlighting with backwards and forwards context awareness.
- Lightning-fast match highlighting with alternating styles.
- Inverted matches (match any text not matched by the regex).
A few things to be aware of:
- The approach I've used for scrollable rich-text editing (which I haven't seen elsewhere on the web) is a bit buggy (but it's fast). Firefox and IE7 have the least issues, but it more or less works in other browsers as well.
- With the syntax highlighting, I generally mark corner-case issues which create cross-browser inconsistencies as errors even if they are the result of browser bugs or missing behavior documentation in ECMA-262v3.
- There are different forms of lines breaks cross-platform/browser. E.g., Firefox uses
\n even on Windows where nearly all programs use
\r\n. This can affect the results of certain regexes.
RegexPal, at least for me, is lots of fun to play with and helps to make learning regular expressions easy through its instant feedback. Check it out at regexpal.com.