Skip to content

Instantly share code, notes, and snippets.

@AlexJWayne
Created October 13, 2009 19:09
Show Gist options
  • Select an option

  • Save AlexJWayne/209462 to your computer and use it in GitHub Desktop.

Select an option

Save AlexJWayne/209462 to your computer and use it in GitHub Desktop.
REGEX: (^|, )([^,\{\};\n\t(\/*)]+)
CSS:
/* ----
Foobar
*/
body {
font: 14px Arial,Helvetica,Sans-serif;
line-height: 1.5;
}
It picks up the body as it should, but it also picks up Foobar in the comment section.
So how do I prevent matches on everything bewteen /* and */ ? It's already in matching
in multiline mode, I'm just not see a way to make this happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment