That can be dangerous. Here's a valid regex:
[ ~/tmp ] $ perl -wle 'use strict; my $x = qr(s/.*/system("rm *")/e); +print $x;' (?-xism:s/.*/system("rm *")/e) [ ~/tmp ] $
You're probably going to need additional regex validation.
Regards,
PN5
In reply to Re: Test RegEx Validity
by Prior Nacre V
in thread Test RegEx Validity
by aplonis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |