On Sep 4, neeraj arora said:
>Is there anything using which i can validate that the regex i input is
>valid or not.
The simplest way is to try and use it:
eval {
"" =~ $regex
};
if ($@) {
# bad regex
}
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]