• Skip to primary navigation
  • Skip to content
  • Skip to footer
Technology, Trends and Leadership by Puneet Ghanshani
  • About
  • Applications
  • Open Source
  • Publications
  • Contact
    Puneet Ghanshani

    Puneet Ghanshani

    Chief Architect at Microsoft

    • Singapore
    • Twitter
    • LinkedIn

    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 Regexlib.com to navigate to the actual page

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

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

    Tags: CSharp

    Categories: CSharp, Visual Studio

    Updated: April 29, 2008

    Share on

    X Facebook LinkedIn Bluesky
    Previous Next

    You May Also Enjoy

    AI-Native Finance Is About Redesigning Workflows and Decisions

    11 minute read

    Sarah Friar, CFO of OpenAI, published a piece recently on what building an AI-native finance function taught her, and the clearest point in it is about the u...

    AI Compute Intensity Has a Second Variable

    9 minute read

    BCG’s recent report on AI and competitive advantage identifies compute intensity as one of five factors that determine how AI value moves through a sec...

    What your cloud strategy got right, and what it never had to solve

    7 minute read

    The cloud strategy most enterprises built between 2016 and 2022 was optimized for a world that no longer exists. That strategy answered questions like: how d...

    The Repository Becomes the Process

    37 minute read

    Software engineering has never really been about writing code. It has been about preserving institutional memory, what a team knows about why a system works ...

    • Follow:
    • Twitter
    • GitHub
    • LinkedIn
    • Feed
    © 2026 Puneet Ghanshani. Powered by Jekyll & Minimal Mistakes.