TextField restrict property and RegExp?

Hi:

It seems it isn’t possible to use RegExp with restrict property, any workaround? I received this specification for dates in an input field:

^((0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/(19[0-9][0-9]|2[0-9][0-9][0-9]))$

Besides the AS editor behaves weird when escaping chars like adding one char after the last quote, usually an space and sometimes others chars like the 6 in this example. Anyway the code seems to work fine

via.restrict = “0-9A-Za-zñÑáéíóúÁÉÍÓÚçÇäëïöüÄËÏÖÜàèìòùÀÈÌÒÙ· /.,\-ºª”’"6;

CS3, OS X 10.4.11

============

Is it possible to intercept chars typed before they are displayed?