When you use regular expressions, you must specify where it occurs in the string. To specify the whole string, you use \A at the beginning and \z at the end of the expression (case-sensitive). I had no idea [:lower:] would work in C#, however you can also use \w+ which matches any word character; then you wouln't have to use ToLower(). Note that regex character escapes are different than C# character escapes. For instance, you would either use:
so \A is the beginning and the \z is match at the end. where do i specify that I want only to match alphabatical letter, because w+ is for 'any word charter' which includes number also
how do i specify from a-z from the beginning to the end and in the middle?
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...