Bit of a LiveCode newbie; wondering if anyone could tell me what I've done wrong with my code.
I have two text fields one called 'Input' and one called 'Output'. I'm using a regular expression to find HTML tags inside 'Input' then, upon clicking a button, listing the tags used within the document in 'Output'. Here's my code thus far:
Code: Select all
on mouseDown
put field "Input" into MyVar
if matchText(MyVar,"</?\w+((\s+\w+(\s*=\s*(?:.*?|'.*?'|[^'>\s]+))?)+\s*|\s*)/?>", varTags) then
put varTags into field "Output"
end if
end mouseDown