Modified regex_code.rb