Well, that's ugly, but at least it doesn't break things entirely, since the link to 1, does work... But let's look at the regexp. I'm using this right now:
/(?:[0-9\-,lrq]|,)+/
One quick but slightly clumsy solution would be something like this:
/(?:[0-9\-,lrq]|,)*[0-9\-lrq]/
That would require the last character to not be a ,.