> Thierry Douez  wrote:
>>
>> Check capture group naming and branch reset.
>>
> Thanks Thierry, completely unaware of those. A quick play and I
> couldn't get capture group naming to work with LC

Kay,

Here is a simple one:

   put "<(?P<tag>[A-Z][A-Z0-9]*)\b[^>]*>.*?</(?P=tag)>" into RX

   if matchText( anyHtmlText, RX) then put "Get it!"

   put "<(?P<tag>[A-Z][A-Z0-9]*)\b[^>]*>.*?</((?P=tag))>" into RX

   if matchText( anyHtmlText, RX, aTagName) then put "Get: " & aTagName


Thierry


------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage

_______________________________________________
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

Reply via email to