Loop/Development/RegExpDebugging

From MozillaWiki
Jump to: navigation, search

Regular Expression debugging tools

browser/components/loop/content/shared/js/urlRegExp.js contains a big regexp currently used to match URLs in plain text. Because it's so giant, changing certain parts of it can be very fragile and can create a nasty game of whack-a-mole of failing tests.

Several regular expression debugging tools & resources have come in handy when debugging changes to it: (they have differing strengths and weaknesses when dealing with a regexp this nasty):