Filter command not working with tabs??

2010-06-02 Thread Bob Sneidar
sw_ sw_test3 NOTICE if you will, that lines 1 2 have 2 tabs together, and 3 does not. The filter command here should give me just line 3 shouldn't it?? Perhaps I do not understand the filter command or regular expressions very well, but the command reference

Re: Filter command not working with tabs??

2010-06-02 Thread Mark Wieder
Bob- Try filter theDropData without * theFilter * -- -Mark Wieder mwie...@ahsoftware.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Filter command not working with tabs??

2010-06-02 Thread Mark Schonewille
have 2 tabs together, and 3 does not. The filter command here should give me just line 3 shouldn't it?? Perhaps I do not understand the filter command or regular expressions very well, but the command reference seems to indicate that I should filter out all the lines that do not contain

Re: Filter command not working with tabs??

2010-06-02 Thread Bob Sneidar
Dangit! I think I already asked this one a couple weeks ago! sigh I remember now. Bob On Jun 2, 2010, at 3:20 PM, Mark Wieder wrote: Bob- Try filter theDropData without * theFilter * -- -Mark Wieder mwie...@ahsoftware.net ___

Re: Filter command not working with tabs??

2010-06-02 Thread Jim Ault
The filter command works on wildcards, not regex Your filter definition = keep lines that are not exactly tabtab You might be thinking put * tab tab * into theFiliter = which means keep lines that do not have at least two tabs in sequence On Jun 2, 2010, at 3:18 PM, Bob Sneidar wrote: Hi

Filter command

2008-05-25 Thread David Bovill
How do you escape chars with the filter command? Specifically what do you do if you want to filter lines that contain the * character? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe

Re: Filter command

2008-05-25 Thread Sarah Reichelt
On Mon, May 26, 2008 at 8:59 AM, David Bovill [EMAIL PROTECTED] wrote: How do you escape chars with the filter command? Specifically what do you do if you want to filter lines that contain the * character? I replace them with something else, then filter, than change them back again. e.g

Re: Filter command

2008-05-25 Thread David Bovill
I think this works as well? filter shellResult with *[*]* 2008/5/26 Sarah Reichelt [EMAIL PROTECTED]: On Mon, May 26, 2008 at 8:59 AM, David Bovill [EMAIL PROTECTED] wrote: How do you escape chars with the filter command? Specifically what do you do if you want to filter lines

Re: Secrets of the filter command?

2007-06-27 Thread J. Landman Gay
26, 2007, at 10:30 PM, Mark Wieder wrote: Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the snake command Ummm... snake? -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use

Re: Secrets of the filter command?

2007-06-27 Thread Jim Ault
, Mark Wieder wrote: Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the snake command Ummm... snake? -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution

Re: Secrets of the filter command?

2007-06-27 Thread Joe Lewis Wilkins
: Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the snake command Ummm... snake? -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit

Re: Secrets of the filter command?

2007-06-27 Thread Joe Lewis Wilkins
some such thing and I just haven't found it yet. Joe Wilkins On Jun 26, 2007, at 10:30 PM, Mark Wieder wrote: Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the snake command Ummm... snake? -- -Mark Wieder [EMAIL PROTECTED

Re: Secrets of the filter command?

2007-06-27 Thread Jim Ault
On 6/26/07 11:25 PM, Joe Lewis Wilkins [EMAIL PROTECTED] wrote: Thanks for the reminder Jacqui and Jim. Snake was probably a name I gave it; perhaps not, but it did snake through all of the scripts. I didn't realize that the Rev. Find and Replace... is that versatile; but, then, I've never

Re: Secrets of the filter command?

2007-06-27 Thread Joe Lewis Wilkins
Thanks, Jim. Glad to see you're hard at work close to midnight! I hit the sack early, but am now up and at em. Joe Wilkins On Jun 26, 2007, at 11:51 PM, Jim Ault wrote: On 6/26/07 11:25 PM, Joe Lewis Wilkins [EMAIL PROTECTED] wrote: Thanks for the reminder Jacqui and Jim. Snake was

Secrets of the filter command?

2007-06-26 Thread David Bovill
I've always been curious about the filter command - and I am pretty sure from examples I have seen that there is a lot more to it than is shown in the docs. Take this example from Jerry Daniels beautiful Galaxy: filter someScript with [-ofsgOFSG][-nueNUE][ ntNT]* What is the leading - doing

Re: Secrets of the filter command?

2007-06-26 Thread Richard Gaskin
David Bovill wrote: I've always been curious about the filter command - and I am pretty sure from examples I have seen that there is a lot more to it than is shown in the docs. Take this example from Jerry Daniels beautiful Galaxy: filter someScript with [-ofsgOFSG][-nueNUE][ ntNT]* What

Re: Secrets of the filter command?

2007-06-26 Thread Jerry Daniels
. So this use of the filter command would yield any lines in a script beginning with: -- (comment used for handler folders) on (command) fun (function) get (getProp) set (setProp) It also handles any irregularities with regard to upper/lower case. That part may actually be slowing it down, now

Re: Secrets of the filter command?

2007-06-26 Thread Mark Wieder
David- The filter command uses a subset of regex. I've got BZ #2805 filed to expand the regex syntax used. Jerry's regex string [-ofsgOFSG][-nueNUE][ ntNT]* is a great little filter for scanning through scripts looking for handlers: it will catch occurrences of lines starting with things like

Re: Secrets of the filter command?

2007-06-26 Thread Joe Lewis Wilkins
Mark is the filter command anything at all like the snake command we used to have available in HC? I've been wondering about how to search for things in Rev the way I used to do in HC and this kind of looked like it might be applicable. Joe Wilkins On Jun 26, 2007, at 4:17 PM, Mark Wieder

Re: Secrets of the filter command?

2007-06-26 Thread Jim Ault
11:58 AM, David Bovill [EMAIL PROTECTED] wrote: I've always been curious about the filter command - and I am pretty sure from examples I have seen that there is a lot more to it than is shown in the docs. Take this example from Jerry Daniels beautiful Galaxy: filter someScript

Re: Secrets of the filter command?

2007-06-26 Thread Mark Wieder
Joe- Tuesday, June 26, 2007, 4:32:03 PM, you wrote: Mark is the filter command anything at all like the snake command Ummm... snake? -- -Mark Wieder [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit

filter command - problems

2006-11-13 Thread Chris Sheffield
Can anyone tell me why this isn't working? I've got a field with contents like this: 1.0[tab]3[tab]0[tab]3 1.3[tab]1[tab]0[tab]1 1.5[tab]2[tab]0[tab]2 2.0[tab]5[tab]0[tab]5 3.0i[tab]50[tab]0[tab]50 4.5c[tab]1[tab]0[tab]1 8.0[tab]10[tab]0[tab]10 Where [tab] = an actual tab character. I want to

Re: filter command - problems

2006-11-13 Thread Chris Sheffield
Please ignore this post. I seem to be suffering from a major brain cramp today. :-) The filter does indeed work as expected. Sorry to bother everyone. Chris On Nov 13, 2006, at 9:28 AM, Chris Sheffield wrote: Can anyone tell me why this isn't working? I've got a field with contents like

Re: filter command - problems

2006-11-13 Thread Jim Ault
Works here Mac OSX 10.4.8, Rev 2.7.2 Be sure that your itemDel is set to TAB, or item 1 of container will not be what you think. Tabs can indeed be used in the filter command. Jim Ault Las Vegas On 11/13/06 8:28 AM, Chris Sheffield [EMAIL PROTECTED] wrote: Can anyone tell me why this isn't

Multiple arguments with the filter command

2006-10-25 Thread Mark Powell
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

Re: Multiple arguments with the filter command

2006-10-25 Thread Jim Ault
tokens in vContainer. You need to decide if you are going to use: replace /a/ with b: in vContainer wild cards regEx or a combination of these. Using ? as a delimiter will create problems for wild cards (which are the basis of the 'filter' command) and regEx. Perhaps the best way for you is to take

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
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

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
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

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
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

RE: Multiple arguments with the filter command

2006-10-25 Thread Mark Powell
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

Re: Multiple arguments with the filter command

2006-10-25 Thread Mark Smith
- 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

Re: Multiple arguments with the filter command

2006-10-25 Thread Marielle Lange
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

Re: Multiple arguments with the filter command

2006-10-25 Thread Jim Ault
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:

RE: Multiple arguments with the filter command

2006-10-25 Thread Mark Powell
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

Re: Filter Command

2005-11-22 Thread Wouter
there are no special chars used. Like for example hard spaces, which alter the string of a word or words if in between. Filter command goes haywire if a null character (numtochar(0)) is in a text (origin could be certain wordprocessors, databases or rev itself) Greetings, Wouter

Filter Command

2005-11-21 Thread Gregory Lypny
Hello Everyone, I'm having a bit of trouble with the Filter command giving me false positives. I'm picking off company names in a file containing news headlines. The headlines file has one headline per line, and each line is tab delimited, where the first item is a unique story number

Re: Filter Command

2005-11-21 Thread Eric Chatonet
Lypny a écrit : Hello Everyone, I'm having a bit of trouble with the Filter command giving me false positives. I'm picking off company names in a file containing news headlines. The headlines file has one headline per line, and each line is tab delimited, where the first item is a unique

Re: Filter Command

2005-11-21 Thread Alex Tweedly
Gregory Lypny wrote: Hello Everyone, I'm having a bit of trouble with the Filter command giving me false positives. I'm picking off company names in a file containing news headlines. The headlines file has one headline per line, and each line is tab delimited, where the first item

Re: Filter Command

2005-11-21 Thread Jim Ault
breakpoint end copy ..then see if the numbers add up like you think There could be 'hidden' characters confusing the filter command In that case the answer would be to [if the char was (11)] replace numtochar(11) with in headlineList before doing the filter command Jim Ault Las

Re: Filter Command

2005-11-21 Thread Gregory Lypny
Thanks Eric, Alex and Jim, I'm going to give your debugging suggestion a shot. Greg ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Filter Command

2005-09-26 Thread Gregory Lypny
Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase field to do searches as I type. What I am not able to do is refresh the search as I delete characters by trapping the deleteKey message. The following handler does nothing

Re: Filter Command

2005-09-26 Thread Mark Smith
Try on backspaceKey. Mark On 26 Sep 2005, at 16:23, Gregory Lypny wrote: Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase field to do searches as I type. What I am not able to do is refresh the search as I delete

Re: Filter Command

2005-09-26 Thread Gregory Lypny
I did. Same problem. Greg On Sep 26, 2005, at 12:02 PM, [EMAIL PROTECTED] wrote: Try on backspaceKey. Mark On 26 Sep 2005, at 16:23, Gregory Lypny wrote: Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase field

Re: Filter Command

2005-09-26 Thread Mark Smith
Lypny wrote: Hello Everyone, I've created a search field that uses the Filter command in a keyUp handler in a search phrase field to do searches as I type. What I am not able to do is refresh the search as I delete characters by trapping the deleteKey message. The following handler does

Re: Filter Command

2005-09-26 Thread Sarah Reichelt
I've created a search field that uses the Filter command in a keyUp handler in a search phrase field to do searches as I type. What I am not able to do is refresh the search as I delete characters by trapping the deleteKey message. The following handler does nothing: on deleteKey

Re: Filter Command

2005-09-26 Thread Gregory Lypny
Hi Sarah and Mark, What platform are you on? It works on mac OS 10.4, here. Cheers, Mark Tiger, 10.4.2 I don't think you can do it just by passing a keyUp message with no parameter. I would do it by writing a separate handler to do the actual filtering. Then call this filter handler

filter command

2002-04-10 Thread yves COPPE
Hello, I have two flds. There are list flds. I'd like to put in a variable the lines which are common to the two flds example Fld 1 one three five Fld 2 One two three four the variable must contain : one three How to proceed ? thanks. -- Greetings. Yves COPPE Email : [EMAIL

Re: filter command

2002-04-10 Thread Michael Foy
: yves COPPE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 3:05 PM Subject: filter command Hello, I have two flds. There are list flds. I'd like to put in a variable the lines which are common to the two flds example Fld 1 one three five Fld 2 One two

Re: filter command

2002-04-10 Thread Michael Foy
oops put that add in too :-) - Original Message - From: Michael Foy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 4:14 PM Subject: Re: filter command how something along the lines sorry don't know rr enough to do the scripting, but here is some pseudo code

Re: filter command

2002-04-10 Thread Ken Ray
- From: yves COPPE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 3:05 PM Subject: filter command Hello, I have two flds. There are list flds. I'd like to put in a variable the lines which are common to the two flds example Fld 1 one three

Re: filter command

2002-04-10 Thread Dave Cragg
At 4:53 pm +0100 10/4/02, Dave Cragg wrote: function commonLines pList1, pList2 repeat for each line tLine in pList1 put 1 into tArray[tLine] end repeat repeat for each line tLine in pList2 add 1 to tArray[tLine] end repeat put keys(tArray) into tKeys repeat for each

Re: filter command

2002-04-10 Thread yves COPPE
Hi everybody Thank you for your answers. The script from Ben doesn't give the right answer. Sorry. The faster for comparing big files is the script of Ken The script of Dave is the most interessant, but the order of the lines is totaly changed. So I shall use the script of Ken. Now, my

Re: filter command

2002-04-10 Thread yves COPPE
At 4:53 pm +0100 10/4/02, Dave Cragg wrote: function commonLines pList1, pList2 repeat for each line tLine in pList1 put 1 into tArray[tLine] end repeat repeat for each line tLine in pList2 add 1 to tArray[tLine] end repeat put keys(tArray) into tKeys repeat for each

Re: filter command

2002-04-10 Thread Ken Ray
: yves COPPE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 10, 2002 11:43 AM Subject: Re: filter command Hi everybody Thank you for your answers. The script from Ben doesn't give the right answer. Sorry. The faster for comparing big files is the script of Ken The script

Re: filter command

2002-04-10 Thread yves COPPE
At 6:49 pm +0200 10/4/02, yves COPPE wrote: This is better, I think. function commonLines pList1, pList2 repeat for each line tLine in pList1 put 1 into tArray[tLine] end repeat repeat for each line tLine in pList2 if tArray[tLine] = 1 then put 2 into