Barely working metalstorm.net Script

Hi,
Huge fan of mp3tag. Thanks for this wonderful software.
I don't have any proramming skills and my trade is completely different. The only scripting I know is AutoHotKey and I was in effort to automate the tagging process. So out of desperation I tried to make a metalstorm.net script to parse genre by going through other scripts, especially Metal Archives by dano. So far it is working but I'm not confident enough to share it for using. Metal Storm.src (3.9 KB)

Can anyone help me with finding tracks because current one has some limitations.

# Tracks
findline "<div class='col-"
do
	outputto "Tracks"

	findinline "<span class=dark>"
	findinline "</span> "
	sayuntil "<br>"
	say "|"

	findinline "<br>"
while "<span class=dark>" 50

This one is okay for tracks like this:

<div class='col-sm-6'><span class=dark>01.</span> This Road<br><span class=dark>02.</span> Under Grass And Clover<br>
  1. This Road
  2. Under Grass And Clover
  3. Glass Houses

But tracks like this are a mess:

<span class=dark>12.</span> I Worship Chaos <span class=dark>[live]</span> <span class=dark>[digipack bonus]</span><br><span class=dark>13.</span> Morrigan <span class=dark>[live]</span> <span class=dark>[digipack bonus]</span><br><span class=dark>14.</span> Knuckleduster <span class=dark>[remix]</span> <span class=dark>[digipack bonus]</span><br>
  1. I Worship Chaos [live] [digipack bonus]
  2. Morrigan [live] [digipack bonus]
  3. Knuckleduster [remix] [digipack bonus]

Number of square bracketed items can be vary. Is there any way to Regexreplace this?

Note: all the tracks are listed in a single line in source code.

(Edit - 1)

<span class=dark>12.</span> I Worship Chaos <span class=dark>[live]</span> <span class=dark>[digipack bonus]</span><br><span class=dark>13.</span> Morrigan <span class=dark>[live]</span> <span class=dark>[digipack bonus]</span><br><span class=dark>14.</span> Knuckleduster <span class=dark>[remix]</span> <span class=dark>[digipack bonus]</span><br>

This can be regexreplaced by:

regexpreplace "\s<span class=dark>[" " ["
regexpreplace "]<\/span>\s" "] "

But I don't know how to integrate it in the script. Please help.