Regex: To match C#, Java, VB.Net Comments

less than 1 minute read

Ever worked on removing comments from a C#, Java, VB and VB.Net code?

Well, just adding 2 reg-ex to your library...

Click to navigate to the actual page

C#/Java Matches: /* multi-line */ | // comment | /// XML Comment

VB/VB.Net Matches: REM comment | 'comment | ''' XML comment