Created
January 16, 2009 04:12
-
-
Save mikedamage/47808 to your computer and use it in GitHub Desktop.
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
# This is how it would look using the Ruby Regexp class | |
# Only match one-line comments | |
@single_line_comments_pattern = Regexp.new(/\/\*.*?\*\//) | |
# Match single and multi-line comments | |
@all_comments_pattern = Regexp.new(/\/\*.*?\*\//m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment