thanks dude this was my first real world application using regular expressions 😉
as usual as soon as i posted this I remembered reading about greedy and lazy * operators or something similar.
So instead i changed the * to be a [&]+
and it worked fine :p