Fix bug: RegExpMatch must be cleared before outputting result.