Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!decwrl!pa.dec.com!daemon From: jmiller@crl.dec.com Newsgroups: comp.lang.perl Subject: Perl code to test for valid reg-exp? Message-ID: <9105021740.AA06244@peanut.crl.dec.com> Date: 2 May 91 17:40:31 GMT Sender: daemon@pa.dec.com (System programs) Reply-To: JMiller@crl.dec.com Organization: Digital Equipment Corporation Lines: 7 To: comp.lang.perl.usenet Has anyone got a short (preferably) piece of Perl code to test a string to see whether or not it is a valid regular expression for use in Perl? I've written a program that allows users to type a string and then uses that to match against a data base; unfortunately the program blows up if the user types in an invalid string! --Jim