Standard Library
Thierry Douez
th.douez at gmail.com
Wed Aug 13 03:21:55 EDT 2014
> 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
More information about the use-livecode
mailing list