What's the deal with your capture groups here?  `(?<foo>...)` is a named capture in ruby, which creates a local variable named `foo`. Since there can't be a var named `=xx-small;"`, that doesn't appear to be your intention.