joewiz/xqjson — pull request #10 by peterstadler (2014-05-09 10:23:30+00:00)
Title: fixing for saxon, part 2

ok, I did some digging into regex (with the help of @roewenstrunk -- thanks!) and found http://www.rexegg.com/regex-disambiguation.html
The strange '?>' is an atomic group (thus non-capturing). Removing this mark results in an increment of the group count, which I fixed now.

Hope it works four you as well ;-)