Use EnterExitFrame and LeaveExitFrame on RegExp