,
Regular Expression
Please give me a regular expression which satisfy Charrecters and numbers
, anu , anish, anu897
invalid -------->
can anybody help me??????
,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Aug 29, 2009, 8:21 AM
Here is what you want :)
dont forget to mark "Do you like answer" please it will give me some credits :)
protected void Button1_Click(object sender, EventArgs e)
{
Regex reg = new Regex("^an[a-z]*[a-zA-Z0-9]*$");
//check if matched or Not
if(reg.IsMatch(TextBox1.Text.Trim())== true)
{
Page.RegisterClientScriptBlock("","");
}
}