Return to Snippet

Revision: 16456
at August 5, 2009 12:04 by mocha0range


Updated Code
/[#|.]?[a-zA-Z0-9_,.#]+[\s]*[{]{1}/

Revision: 16455
at August 4, 2009 18:27 by mocha0range


Initial Code
^(#|.)?[a-zA-Z0-9_,.# ]+[{]{1}

Initial URL


Initial Description
This finds CSS style names, i.e. "#foo" or "#foo, .bar"

Note: You'll need to chomp the trailing "\s{" off the end of the matched string. I matched it just to make sure that it didn't get anything else.

Initial Title
Find CSS Style Names

Initial Tags
regex, css

Initial Language
Regular Expression