Michael, those are two awesome resources! Thanks. SKIP
On Fri, Sep 26, 2014 at 7:23 PM, Michael Doub <miked...@gmail.com> wrote: > Guys, I have been using these 2 sites lately and they are really a huge > help in understanding regex: > > http://regex101.com/#pcre > http://www.regexr.com > > Give them a try… > Mike > > > > On Sep 26, 2014, at 5:34 PM, Magicgate Software - Skip Kimpel < > s...@magicgate.com> wrote: > > > Thank you Mark! > > > > On Fri, Sep 26, 2014 at 4:58 PM, Mark Schonewille < > > m.schonewi...@economy-x-talk.com> wrote: > > > >> Hi Skip, > >> > >> If it contains numbers and letters, it could be > >> > >> /point-item[0-9a-zA-Z]+-landed.html > >> > >> and if it contains anything except whitespace, it could be > >> > >> /point-item[\w]+-landed.html > >> > >> Both options work with the sample data you provided. > >> > >> -- > >> 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:54, Magicgate Software - Skip Kimpel wrote: > >> > >>> 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.schonewi...@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.schonewi...@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@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@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@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@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@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode