Regex Help

Magicgate Software - Skip Kimpel skip at magicgate.com
Fri Sep 26 16:54:51 EDT 2014


Sorry... it contains letters.  Sorry for the confusion.  I should have been
more complete with my explanation and sample data.

SKIP

On Fri, Sep 26, 2014 at 4:51 PM, Mark Schonewille <
m.schonewille at economy-x-talk.com> wrote:

> Then what exactly does the middle item contain? Numbers and letters?
> Special symbols? Chinese?
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Installer Maker for LiveCode:
> http://qery.us/468
>
> Buy my new book "Programming LiveCode for the Real Beginner"
> http://qery.us/3fi
>
> LiveCode on Facebook:
> https://www.facebook.com/groups/runrev/
>
> On 9/26/2014 22:49, Magicgate Software - Skip Kimpel wrote:
>
>> The middle item "XXXXX" does not always have a number in it.  The common
>> denominator between all the items I WANT to keep start with "page-" and
>> end
>> with "-landed.html"
>>
>> On Fri, Sep 26, 2014 at 4:37 PM, Mark Schonewille <
>> m.schonewille at economy-x-talk.com> wrote:
>>
>>  Hi,
>>>
>>> Then you can try this:
>>>
>>> on mouseUp
>>>       put "/point-item[0-9]+-landed.html" into myFilter
>>>       put fld 1 into myData
>>>       filter myData with regex pattern myFilter
>>>       put myData
>>> end mouseUp
>>>
>>> This is a LiveCode example, but you can apply the regex
>>> "/point-item[0-9]+-landed.html" in PHP or Perl. I tried this with and
>>> without escaping the slash and dashes, but escaping seems unnecesary. If
>>> the regex doesn't work in PHP or Perl, maybe you could try
>>>
>>> \/point\-item[0-9]+\-landed.html
>>>
>>> but I haven't tested if this would be necessary.
>>>
>>> --
>>> Best regards,
>>>
>>> Mark Schonewille
>>>
>>> Economy-x-Talk Consulting and Software Engineering
>>> Homepage: http://economy-x-talk.com
>>> Twitter: http://twitter.com/xtalkprogrammer
>>> KvK: 50277553
>>>
>>> Installer Maker for LiveCode:
>>> http://qery.us/468
>>>
>>> Buy my new book "Programming LiveCode for the Real Beginner"
>>> http://qery.us/3fi
>>>
>>> LiveCode on Facebook:
>>> https://www.facebook.com/groups/runrev/
>>>
>>> On 9/26/2014 22:27, Magicgate Software - Skip Kimpel wrote:
>>>
>>>  The results I want returned are:
>>>>
>>>>
>>> _______________________________________________
>>> 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
>>>
>>>  _______________________________________________
>> 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
>>
>>
> _______________________________________________
> 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