Untitled

Run Settings
LanguageRuby
Language Version
Run Command
#!/usr/bin/ruby # -*- coding: UTF-8 -*- phone = "188-8888-8888 #这是一个电话号码" # 删除 Ruby 的注释 phone = phone.sub!(/#.*$/, "") puts "电话号码 : #{phone}" # 移除数字以外的其他字符 phone = phone.gsub!(/\D/, "") puts "电话号码 : #{phone}"
Editor Settings
Theme
Key bindings
Full width
Lines