legend has asked for the wisdom of the Perl Monks concerning the following question:
I need to somehow convert the above filter into something sensible so that I can apply to the following data:(AND (OR AUTHOR=John PROFIT=90% AUTHOR=Matt PROFIT=80% ) PUBLISHER=OReilly )
Then when I apply the filter to this data, I should get: the results from Page 2 and Page 4. I thought of pushing the elements into an array as they are encountered while scanning the filter but it didn't make any sense because I'm not sure how to use this. Am I missing out some easy thing here?Page 1 AUTHOR: John PROFIT: 20% PUBLISHER: TMH BOOK: OPERATING SYSTEMS Page 2 AUTHOR: John PROFIT: 90% PUBLISHER: OREILLY BOOK: ALGORITHMS Page 3 AUTHOR: Matt PROFIT: 80% PUBLISHER: TMH BOOK: COMPUTER NETWORKS Page 4 AUTHOR: Matt PROFIT: 80% PUBLISHER: OREILLY BOOK: COMMUNICATION SYSTEMS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Implementing a text filter on some dataset
by bobf (Monsignor) on Feb 27, 2008 at 05:09 UTC | |
by legend (Sexton) on Feb 27, 2008 at 05:27 UTC | |
|
Re: Implementing a text filter on some dataset
by BrowserUk (Patriarch) on Feb 27, 2008 at 09:31 UTC | |
by grizzley (Chaplain) on Feb 27, 2008 at 13:06 UTC | |
|
Re: Implementing a text filter on some dataset
by grizzley (Chaplain) on Feb 27, 2008 at 08:40 UTC | |
|
Re: Implementing a text filter on some dataset
by legend (Sexton) on Mar 02, 2008 at 21:01 UTC | |
|
Re: Implementing a text filter on some dataset
by legend (Sexton) on Mar 04, 2008 at 22:52 UTC |