Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

No q's? (Re: Big, bad, ugly regex problem)

by tye (Cardinal)
on Sep 28, 2000 at 09:08 UTC ( #34333=note: print w/ replies, xml ) Need Help??


in reply to Big, bad, ugly regex problem

exit if $data =~ /q/i;

Okay, why is "q" illegal in input? It doesn't seem very dangerous to me! ;-) I think you have a problem with your regex but I think "big, bad, ugly" is overstating it. You probably just wanted something more like:

exit if $data =~ /^\s*q\s*$/i;

I couldn't get past this first part so you'll have to rely on the other replies for the rest of it. (:

        - tye (but my friends call me bad names when I act like this)


Comment on No q's? (Re: Big, bad, ugly regex problem)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2015-07-30 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls