Hello ,

i write this regex for class definition


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


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