an ugly monster, but this doens't work with the normal regex