/ Published in: Regular Expression
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.
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/[#|.]?[a-zA-Z0-9_,.#]+[\s]*[{]{1}/