Hello ,

i write this regex for class definition

((\b(Public|Private|Protected|Friend|Shadows|MustInherit|NotInheritableb)\b)?^?(\bClass\b)(\s).*[A-za-z0-9])

it matches the class correctly but also matches"Public Class " and i added to the regex "$" to be as

((\b(Public|Private|Protected|Friend|Shadows|MustInherit|NotInheritableb)\b)?^?(\bClass\b)(\s).*[A-za-z0-9]$)

it does not match anything Please any one can help me

Note: it is the first time i wrote A REGEX , if any one know online tutorial will help me please tell

Thanks in advance

NElaswer