Skip to content Skip to sidebar Skip to footer

Css Regular Expression

I'm trying to get a regular expression (in Javascript) to get margin, padding and border values, reading them from document.styleSheets I wrote that: /:\s*?(\d+)(px)?/gi but is no

Solution 1:

As the stylesheets can be formatted in several different ways, you should have a look at other alternatives, like the JSizes jQuery extension plugin that will be very helpful to get those values.


Post a Comment for "Css Regular Expression"