Filter
Alex Tweedly
alex at tweedly.net
Sat Apr 30 06:11:55 EDT 2005
Mark Schonewille wrote:
> Hi,
>
> I have a long list with text. The syntax
>
> filter myLongList with "*a*|*b*"
>
> should return almost the complete list, but I don't get any data
> returned, while
>
> filter myLongList with "*a*"
>
> and
>
> filter myLongList with "*b*"
>
> both work. What's wrong here?
>
You should be able to do "*[ab]*"
You're using "filter" as though it tok any normal Regular Epression. It
doesn't - only
> Wildcard expressions are similar to regular expressions. You can use
> the following characters in a wildcard expression:
>
> *
> Matches zero or more of any character. The wildcard expression A*C
> matches "AC", "ABC", or "ADZXC".
>
> ?
> Matches exactly one character. The wildcard expression A?C matches
> "ABC", but not "AC" or "ADZXC".
>
> [chars]
> Matches any one of the characters inside the brackets. The wildcard
> expression A[BC]D matches "ABD" or "ACD", but not "AD" or "ABCD".
>
> [char-char]
> Matches any character whose ASCII value is between the first character
> and the second character.
>
--
Alex Tweedly http://www.tweedly.net
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 27/04/2005
More information about the use-livecode
mailing list