iblis on 08/28/07
Last Edited at 08/28/07 01:02pm
# Test for (in)valid regex# perl regex ## (you may need to disable warnings) my $pattern = shift;my $regex = eval { qr/$pattern/ };die "Your regex doesn't seem valid : $@" if $@;
Report this snippet Tweet
Comment:
You need to login to post a comment.