Created
July 30, 2018 07:24
-
-
Save chindraba-work/061826125b89e0be593e465f6f76ef8a to your computer and use it in GitHub Desktop.
Regular expression to remove comments marked with a double slash - one-line version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^((?:(?:(?:[^"'/\n]|/(?!/))*)(?("(?=(?:\\\\|\\"|[^"])*"))(?:"(?:\\\\|\\"|[^"])*")|(?('(?=(?:\\\\|\\'|[^'])*'))(?:'(?:\\\\|\\'|[^'])*')|(?(/)|.))))*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment