Find CSS Style Definitions

/ Published in: Regular Expression
Save to your folder(s)

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

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

Copy this code and paste it in your HTML
  1. /(#|.)?[a-zA-Z0-9\_\,\.\:\# ]+[{]{1}[a-zA-Z0-9\n\r\s\:\;\#\(\)\\\/\"\'\-\_\.\,]*[}]{1}/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.