Complexity has grown from what I originally intended, and it would benefit from being re-written in something like python.
The main pain point is going to be coming back to this when the origin data changes.
sed 's/<.*;\/ref>//g;s/| /0,/g;s/|data-sort-value=".*\[/1,/g;s/\]//g;s/ .*\[/,/g;s/ *|0//g'
Complexity has grown from what I originally intended, and it would benefit from being re-written in something like python.
The main pain point is going to be coming back to this when the origin data changes.