Select the id that begins and ends with certain values

CSS selectors have gone a long way from their beginnings. Today you have multiple choices to select elements in the page.
Today I needed to select all the elements with the id matching this regex:


But CSS doesn’t let regex. To do this, you can combine these two attribute selectors:

[id^=value] // Element with the id beginning with "value"
[id$=value] // Element with the id ending with "value"

So we have:

div[id^=fixed_string_][id$=_digit] {
  color: red;


A JavaScript framework on every table

For example, the most recent TodoMVC pull request, as of this writing, wants to add Riot.js 2.0. What is Riot.js 2.0, you ask? Apparently, it’s the second version of something called Riot.js, an app framework that’s like React.js, but better in some ways that are definitely important. “But wait,” you may ask, “didn’t React like just come out and isn’t even 1.0 yet? How can a thing based on it be 2.0 already?!” The answer, my friend, is JavaScript.