> Do you have some example usage of the XML tools?
I tend to use Ruby / Nokogiri for such small tasks.
Then its
doc = Nokogiri::HTML(open('uri'))
doc.css('a').each do |a|
puts $1 $2 if /(.*)dog(.*)/ =~ a["href"]
end
(or similar)
For haxe you may want to try google which yields
http://old.haxe.org/doc/cross/xml for example
Well - do whatever works in your case. Haxe Regex docs already mention
that other tools (eg preg_match_callback for PHP or Python) could be
faster to get your job done unless it must be written in Haxe, because
they automatically do what you want (match the regex as often as
possible).
However implementing the loop I talked about is also trivial. You must
know whether its ok to miss <a target="foo" href="dog3cat178">..</a>
or whether its ok to to catch <dummy href="dog... as well. I don't know
your case.
You may also want to have a look at
http://lib.haxe.org/legacy/p/xpath
or
https://github.com/djcsdy/haxe-xpath
I never used either of those.
Marc Weber