,
Regular Expression
Please give me a regular expression which satisfy Charrecters and numbers
, anu , anish, anu897
invalid -------->
can anybody help me??????
,
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kirtan PatelRank #292 · 8.6K reputationPosted Aug 29, 2009, 4:21 AM EDT
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("","");
}
}