Fix display of RegExp objects. Issue #278

Closes #278.