Re: Javascript masks / partial regexp matching

2006-02-28 Thread Leonardo Quijano Vincenzi
Yeah the problem is that I needed to do that on every key press. Ajax is too slow for that. -- Ing. Leonardo Quijano Vincenzi DTQ Software Kent Tong wrote: Leonardo Quijano Vincenzi dtqsoftware.com> writes: The approach I'm taking is basically using regular expression matching on every

Re: Javascript masks / partial regexp matching

2006-02-28 Thread Kent Tong
Leonardo Quijano Vincenzi dtqsoftware.com> writes: > The approach I'm taking is basically using regular expression matching > on every keypress to detect whether the next code will be valid > according to the general regexp. But I can't seem to find any partial > match flag or operator for Reg

Javascript masks / partial regexp matching

2006-02-25 Thread Leonardo Quijano Vincenzi
Hi there, I'm trying to get back at some mask edit control I was implementing some weeks ago. I want to use regular expressions for mask input, such as: (\(\d{3}\))? \d{3}-\d{4} For a phone number. I think it's much more flexible than simple (###) ###- mask expressions (the one used by M