RegEx for css class name <p>I want to have a class <code>cX</code> where x is a number between 0 and 100. I could add <code>c0</code> to <code>c100</code> to my css. But well, I'd like to avoid that.</p> <p>I know there are ways to match element attributes like <code>h2[rel="external"]</code>. But is it also possible to match class names? Would it also possible to use the matched value within the rule?</p> <p>Example</p> <pre><code>.c[x] { height: x%; } </code></pre>