I think it would help to document the code. E.g. 

    framework_regex = /[^a-zA-Z\d]/
    framework ~= framework_regex

But we'll see how it looks when the old lines are added back in.