- maskRe determines the characters that you can type (e.g. maskRe: /[a-z]/ will only allow lower case characters).
- stripCharsRe is used to strip out text before validation (e.g. stripCharsRe: /(^\s+|\s+$)/g will strip leading and trailing spaces).
- regexp is used to validate the resulting value (e.g. regexp: /^[a-z]+$/ will only accept a string of lower case characters).
So form accept only lowercase chars... So I now understand that maskRe is a positve filter: accept only what matches regexp. I cannot digit every key is not matched, it will not be displayed at all
I tried using the same /[a-z]/ regexp using stripCharsRe and the behaviur is different: stripCharsRe is a negative filter: accept only what DOESN'T match to regexp. So I can digit a 'T' and it will be displayed, but if I digit a 't' it will be first displayed and then discarded, deleted, from text box.
Last edited by realtebo2; 6 Sep 2009 at 1:08 AM.
Reason: Added more info