Apr 20, 2008, 7:10 AM
[FIXED] TextBox Regex property
Hi,
I'm trying to use regular expression validation with the Textbox, but i notice that
<cool:TextBox Runat="server" AllowBlank="false" Regex="/^[a-zA-Z_]+$/"></cool:TextBox>
is rendered as:this.m_c_ctl00=new Ext.form.TextField({
allowBlank:false,
applyTo:"m_c_ctl00_TextBox",
regex:"/^[a-zA-Z_]+$/",
id:"m_c_ctl00"
});}
With the double-quotes that are placed around the regex property value, ExtJs throws a Javascript error.When I manually remove the double quotes, the validation works fine.
Am I declaring regex validation the right way? Or could this be a bug?
Greetings,
Martijn