I need a regular expression which accepts only characher(A,a,B,B like).
And characher size is only 2.
Means I should enter only values like MH.
please help me
Regular Expression in Asp.net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 16, 2011, 1:54 AM EST
use this [a-zA-Z]{2} as a regular expression.
Thanks.
PankaJ D147 reputationPosted Feb 16, 2011, 2:00 AM EST