Kay, >> put "<(?P<tag>[A-Z][A-Z0-9]*)\b[^>]*>.*?</(?P=tag)>" into RX >> >> if matchText( anyHtmlText, RX) then put "Get it!" > > Unfortunately not.
Just tried it right now and it works! What system and LC version do you have? Are you sure the copy/paste didn't spoil the original regex or what else could be? You know, I certainly can do mistakes when I'm writting anything here, as I don't have always enough time to test the code I write.. Errare humanun est.. I wouldn't certainly not reject Livecode or anything else if anyone send some lines of code with a typo in it. > At first I thought it was because I was using the msg box Sorry, I never use the message box, so can't really say anything about any code used this way.. > Thierry, thank you so much for taking the time to get me sorted out > with this, but it only reinforces my advise to any new or casual user > of regex regarding the above online tester: it wont make you an > expert, or remove the complexity or confusion you may have, but it > will certainly help you: pinpoint your errors, learn as you go, and > get you the expressions you need a whole lot faster than working with > LC + regex alone. Well, the missing point is in Livecode you don't have any feedback for any bad-formed pattern matching :( > Regex is powerful stuff. LC + regex is just giving your stack extra > horsepower for free. Well said. if you feel so we could exchange our stack if you are interested to find out what's wrong from your side. Thierry _______________________________________________ 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