Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Site Search perlscript and security

by steelrose (Scribe)
on Nov 29, 2005 at 17:49 UTC ( #512728=note: print w/replies, xml ) Need Help??

in reply to Re: Site Search perlscript and security
in thread Site Search perlscript and security

This is exactly what my concern was (though admittedly, I didn't realize you could actually run code in a regex...)

It's just a simple text search, so I should have success using a form of your if statment. I think what I'll do though is strip the string of any non A-Z a-z 0-9 and space, then use that string to feed the regex.

I'll play around with it (I'm still learning about regex's) and see what I can come up with. In the mean time, if anyone has a good solution and wants to post it, I'll check back later to see how my solution compares. Thanks.

If you give a man a fish he will eat for a day.
If you teach a man to fish he will buy an ugly hat.
If you talk about fish to a starving man, you're a consultant.
  • Comment on Re^2: Site Search perlscript and security

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://512728]
[LanX]: ha ... just read an article saying that some US presidents in the past lost their nuclear codes
[LanX]: xD
[Corion]: The code is 00000000, as always, no?
[GotToBTru]: I remember hearing about somebody misplacing a list of code phrases or something
[marto]: 12345
[GotToBTru]: the "nuclear codes" are in the case cuffed to the wrist of some guy
[LanX]: not always

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-01-20 12:39 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (174 votes). Check out past polls.