Return to Snippet

Revision: 16454
at August 5, 2009 12:41 by mocha0range


Updated Code
/(#|.)?[a-zA-Z0-9\_\,\.\:\# ]+[{]{1}[a-zA-Z0-9\n\r\s\:\;\#\(\)\\\/\"\'\-\_\.\,]*[}]{1}/

Revision: 16453
at August 4, 2009 18:25 by mocha0range


Initial Code
^(#|.)?[a-zA-Z0-9\_\,\.\:\# ]+[{]{1}[a-zA-Z0-9\n\r\s\:\;\#\(\)\\\/\"\'\-\_\.\,]*[}]{1}

Initial URL


Initial Description
This finds the entire style definition - from #foo to the last brace.

i.e. ".foo, #bar { foo: bar; foo: bar; bar: foo; }"

Initial Title
Find CSS Style Definitions

Initial Tags
regex, css

Initial Language
Regular Expression