module Regexp::Parser
def self.options(token)
def self.options(token) opt = token.text.split('-', 2) exp = Group::Options.new(token) exp.options = { :m => opt[0].include?('m') ? true : false, :i => opt[0].include?('i') ? true : false, :x => opt[0].include?('x') ? true : false, :d => opt[0].include?('d') ? true : false, :a => opt[0].include?('a') ? true : false, :u => opt[0].include?('u') ? true : false } nest(exp) end