Don't ask to ask, just ask | |
PerlMonks |
How can i parse google-like search strings?by pernod (Chaplain) |
on Jul 01, 2005 at 09:04 UTC ( [id://471599]=perlquestion: print w/replies, xml ) | Need Help?? |
pernod has asked for the wisdom of the Perl Monks concerning the following question: Esteemed Monks, I've searched cpan, super searched and googled, and I'm sure I've overlooked something. Therefore this little question. My $firm has a web application, where we would like to take google-like search strings and process these for insertion into sql-statements. Example:
This search string will then be translated into some data-structure that can be transmitted to our sql-generation functions. There are probably a million ways to solve this with regular expressions, Parse::RecDescent and whatnot. Safety-issues (sql-insertion, for example) makes this a delicate issue, though. Does anyone know of a module that implements this? I am almost certain that this is a wheel that does not need to be reinvented, I'm just unable to find it at the moment. Thank you for listening. pernod
Back to
Seekers of Perl Wisdom
|
|