allowed regex in filter?

Dr. Hawkins dochawk at gmail.com
Thu Jan 1 20:59:52 EST 2015


On Thu, Jan 1, 2015 at 4:59 PM, Mike Bonner <bonnmike at gmail.com> wrote:

> It works just as well (as far as I can see) to type the space+ (or even
> space*) or \s+.  Isn't the \S (capital) a negate match?   So it will match
> anything but a whitespace char?  and lower case /s is match whitespace?
>

yes

>
> Just checked with the regex builder, and that is how its behaving. so use
> \s+ rather than \S+ to match whitespace.
>

But I'm after non-whitespace :)

The source pattern could be either a single character or space, followed by
a space, followed by keyword I'm matching, another space, and one or more
words, or just the keyword, followed by a spce, followed by one or more
words.

something like

c mykey some sentence or another

or

mykey some sentence or another

myKey needs to be at least three characters.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462



More information about the use-livecode mailing list