* Edit: Neglected to put [Ace] in the header.
On Rubular, the following regular expression evaluates 7 match groups - as expected
/^<(\w+)\s*(\w+=".*")*\s*(??:\/\s*>)|(?:>(.*)<\s*\/\s*\1\s*>))$/mHowever, the following line only returns the last match in a note box.
/^<(\w+)\s*(\w+=".*")*\s*(??:\/\s*>)|(?:>(.*)<\s*\/\s*\1\s*>))$/m.match(note) { |m| name = m[1] attributes = @options[😛arse_attr].call(m[2]) innerText = @options[😛arse_text].call(m[3]) msgbox_p("#{name} found with attributes: #{attributes.join(',')}. innerText=#{innerText}")}The note contains the following text:
Any ideas why the engine appears to parse differently from the note section? Is there some oddness with line-breaks that I'm neglecting?
On Rubular, the following regular expression evaluates 7 match groups - as expected
/^<(\w+)\s*(\w+=".*")*\s*(??:\/\s*>)|(?:>(.*)<\s*\/\s*\1\s*>))$/mHowever, the following line only returns the last match in a note box.
/^<(\w+)\s*(\w+=".*")*\s*(??:\/\s*>)|(?:>(.*)<\s*\/\s*\1\s*>))$/m.match(note) { |m| name = m[1] attributes = @options[😛arse_attr].call(m[2]) innerText = @options[😛arse_text].call(m[3]) msgbox_p("#{name} found with attributes: #{attributes.join(',')}. innerText=#{innerText}")}The note contains the following text:
The text is the same for rubular and the note section this was called from.
Any ideas why the engine appears to parse differently from the note section? Is there some oddness with line-breaks that I'm neglecting?