Skip to content

Instantly share code, notes, and snippets.

@mikedamage
Created January 16, 2009 04:12
Show Gist options
  • Save mikedamage/47808 to your computer and use it in GitHub Desktop.
Save mikedamage/47808 to your computer and use it in GitHub Desktop.
# 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