I'm not an expert at all, but shouldn't the second '$' be a '$1' in the first example, a variable that points back to the first regex match?

Volgend bericht Vorig bericht