Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Test RegEx Validity

by Prior Nacre V (Hermit)
on Nov 29, 2004 at 04:42 UTC ( #410858=note: print w/replies, xml ) Need Help??


in reply to Test RegEx Validity

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://410858]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-05-28 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (99 votes). Check out past polls.

    Notices?