PDA

View Full Version : [SOLVED] Textfield's maskRe



CrazyEnigma
14 May 2010, 7:34 AM
I am not too sure what needs to be in the maskRe.

I want to filter alphanumeric and "_", "-", ".", "#", but I am not too sure what needs to be in the maskRe.



maskRe: "\w",
Can someone please shed some light on this subject? The API does not show any examples.

CrazyEnigma
14 May 2010, 2:36 PM
Ah, never mind.


maskRe: new RegExp("[a-zA-Z0-9.,_-]");


did the trick.