Another text filtering question, please. I have studied the archives
but have not found precisely the solution that works.
I have a container vContainer of file names, each line of the form
directory/!?!filename!/filesize/creationdate
Here are three literal examples:
C:/The
On 10/25/06 9:04 AM, Mark Powell [EMAIL PROTECTED] wrote:
Another text filtering question, please. I have studied the archives
but have not found precisely the solution that works.
I have a container vContainer of file names, each line of the form
Would this help?
put ps,europe into tSearch
repeat for each item tItem in tSearch
replace tItem with % tItem in tFileList
end repeat
filter tFileList with *%*
replace % with in tFileList
This does a or choice and returns the file that contain ps or
europe. I let you work out
One catch is that if the user inputs something like 53, the
operation
must recognize the fact that the 53 in the first two examples is
not a
part of the file name, thereby filtering them out, but that 53 is a
part of the file name in the third example, thereby filtering it in.
This is one
Correction:
[^/%]*)%?([^/%]*
into
([^/%]*)%?([^/%]*)+ which means one or more repetitions of that
pattern.
This was untested. There is obviously a problem with the
parentheses. You could try this:
[^/%]*)%?([^/]*
but this will only replace the first %53, not the second one. That
you have seen with the brute
force approach like the one above?
Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Powell
Sent: Wednesday, October 25, 2006 10:04 AM
To: use-revolution@lists.runrev.com
Subject: Multiple arguments with the filter
-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Powell
Sent: Wednesday, October 25, 2006 10:04 AM
To: use-revolution@lists.runrev.com
Subject: Multiple arguments with the filter command
Another text filtering question, please. I have studied the archives
but have not found
are the risks you have seen with the brute
force approach like the one above?
Mark
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Powell
Sent: Wednesday, October 25, 2006 10:04 AM
To: use-revolution@lists.runrev.com
Subject: Multiple arguments with the filter
On 10/25/06 12:54 PM, Mark Powell [EMAIL PROTECTED] wrote:
Thanks to both Jim and Marielle for their awesome feedback. Instead of
asking specific questions about the details of your feedback, I want to
ask a general performance question. The filter does work within a
repeat loop like this:
PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marielle
Lange
Sent: Wednesday, October 25, 2006 2:32 PM
To: How to use Revolution
Subject: Re: Multiple arguments with the filter command
Yep, this was the fast solution to the and problem ;-). Best strategy
to adopt then is to first sort the search items
10 matches
Mail list logo