Test regex compileby scottb (Scribe)
|on May 13, 2004 at 17:38 UTC||Need Help??|
scottb has asked for the
wisdom of the Perl Monks concerning the following question:
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.