Is there a way that I can test whether or not a regular expression will compile without error without actually compiling it (and dieing if it does fail)?
I have a tool I have written where my coworker and I must be adding and removing regular expressions on the fly; as it stands if we make a typo in the regex, the program dies which is highly undesireable.