Filter command not working with tabs??
jimaultwins at yahoo.com
Wed Jun 2 18:37:13 EDT 2010
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 all. I cannot see what I am doing wrong here. Try this
> yourselves. In the message box put:
> put "test" & tab & tab & return & \
> "sw_" & tab & tab & return & \
> "sw_test3" & tab & "<" & tab & return into theDropData
> put tab & tab into theFilter
> filter theDropData without theFilter
> put theDropData
> I get:
> 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 seems to indicate
> that I should filter out all the lines that do not contain two tabs,
> but it is not doing this. It looks for all the world like the filter
> command is completely ignoring tabs in the expression!
More information about the Use-livecode