More regex madness

Mike Bonner bonnmike at gmail.com
Wed Mar 16 22:11:18 EDT 2011


Oh, also, there is a regex builder plugin thingy that is pretty useful, and
should be installed in the ide by default.

On Wed, Mar 16, 2011 at 8:09 PM, Mike Bonner <bonnmike at gmail.com> wrote:

> the * matches any number of chars matching the preceeding char.
> so *varchar*will try to match varcharrrrrrr
> To do what you want, use the period which stand for any char.
>
> So.. ".*varchar.*default.*" might be closer to what you want. Can be some
> weird results depending on whats in the string that is being regexed, but
> should get you a start.
>
>
> On Wed, Mar 16, 2011 at 6:20 PM, Bob Sneidar <bobs at twft.com> wrote:
>
>> Hi all.
>>
>> I read over the regex specifications, and I am more confused than ever. I
>> want to find, say any text and "varchar" and any text and "default" and any
>> text. I would think that:
>>
>> matchText("varchar(255) default `Yes`", "*varchar*default*") would return
>> true, but no. I get:
>>
>> Message execution error:
>> Error description: matchChunk: error in pattern expression
>> Hint: bad escape sequence
>>
>> However:
>>
>> put matchText("varchar(255) default `Yes`", "varchar")
>>
>> returns true.
>>
>> How do I use wild cards?? I really thought I understood at least the
>> basics of regex, but I see I do not.
>>
>> Bob
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>



More information about the use-livecode mailing list