Regex Help

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Sep 26 16:37:37 EDT 2014


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:




More information about the use-livecode mailing list