るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.006秒)
トップページ > クエリ:email=[x] > クラス:String[x]

別のキーワード

  1. x509 trust_email
  2. specification email=
  3. specification email
  4. openssl trust_email
  5. rubygems/specification email=

ライブラリ

検索結果

String#tr(pattern, replace) -> String (7.0)

pattern 文字列に含まれる文字を検索し、 それを replace 文字列の対応する文字に置き換えます。

...
p "ORYV".tr("A-Z", "D-ZA-C") # => "RUBY"

# 全角英数字といくつかの記号の半角化
email =
"ruby−lang@example.com"
p email.tr("0-9a-zA-Z.@−", "0-9a-zA-Z.@-")
# => "ruby-lang@example.com"
//}

@see String#tr!, String#tr_s...