module FFaker::String
def from_regexp(exp)
def from_regexp(exp) result = '' @last_token = nil # Drop surrounding /'s and split into characters tokens = exp.inspect[1...-1].split(//) result << process_token(tokens) until tokens.empty? result end
def from_regexp(exp) result = '' @last_token = nil # Drop surrounding /'s and split into characters tokens = exp.inspect[1...-1].split(//) result << process_token(tokens) until tokens.empty? result end