I need something like this:
Regex validSelector = new Regex("^[.
Has anyone written a regex to test jQuery or CSS selectors? (CSS3 / jQuery1.4)
Or does anyone know where I can find the regex generator or regexp to test the jQuery selector? (or at least a CSS selector?)
I tried using the sizzle.js bu John Resig code and w3c docs for css (http: // www. W3.org/Style/CSS/), but in the end there was a headache: (
I think I would ask which of you have already written or used some fragment for this.
Thanks!!
source
share