re_expand
正規表現の展開ライブラリ
数え上げ問題解くのに使えることがある
http://rubygems.org/gems/re_expand
http://npmjs.org/packages/re_expand
「...以外」を指定できたら順列も生成できる?