Sha256: 82d1b3d040f998f82513060e605f9ed706c031c7fb7d8f71706c5b8098ebc544

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 Bytes

Contents

#begin
#  string_input= string_data_obj
#  contain= nil
#  ["[", "]","^","$","*","/"].each do |one_sym|
#    if string_input.include? one_sym
#      contain ||= true
#    end
#  end
#  if contain == true
#    string_regexp= Regexp.new(string_input).inspect#.gsub('\\','')
#    string_regexp= string_regexp[1..(string_regexp.length-2)]
#    if string_input == string_regexp
#      return Regexp.new(string_input)
#    else
#      raise ArgumentError,"invalid input string"
#    end
#  end
#rescue ArgumentError
#end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
str2duck-1.3.1 dump/find_regexp.rb
str2duck-1.3.0 dump/find_regexp.rb
str2duck-1.2.0 dump/find_regexp.rb
str2duck-1.1.1 dump/find_regexp.rb
str2duck-1.0.1 dump/find_regexp.rb
str2duck-1.0.0 dump/find_regexp.rb