Postal Code input mask

Postal Code input mask

I was wondering what the code is to mask a input to canadian postal code format.