Skip to content

Instantly share code, notes, and snippets.

@simplexidev
Last active January 6, 2021 10:56
Show Gist options
  • Save simplexidev/e4353c77ce68f13fc937a6de04ea4805 to your computer and use it in GitHub Desktop.
Save simplexidev/e4353c77ce68f13fc937a6de04ea4805 to your computer and use it in GitHub Desktop.

Removes all comments of the following formats in C#:

// Single line

/// Single line (doumentation)

/* Single line */

/*
 * Multiline
*/
(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/[\s]+)|(//.*[\s]+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment