るりまサーチ (Ruby 3.1)

最速Rubyリファレンスマニュアル検索!
3件ヒット [1-3件を表示] (0.017秒)
トップページ > クエリ:IGNORECASE[x] > バージョン:3.1[x] > クエリ:compile[x]

別のキーワード

  1. english $ignorecase
  2. regexp ignorecase
  3. _builtin ignorecase
  4. kernel $ignorecase
  5. english ignorecase

種類

ライブラリ

クラス

キーワード

検索結果

Regexp.compile(string, option = nil, code = nil) -> Regexp (54430.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

第一引数が正規表現であれば第一引数を複製して返します。第二、第三引数は警告の上無視されます。

@param string 正規表現を文字列として与えます。

@param option Regexp::IGNORECASE, Regexp::MULTILINE,
Regexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, fals...

Regexp.new(string, option = nil, code = nil) -> Regexp (9130.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

第一引数が正規表現であれば第一引数を複製して返します。第二、第三引数は警告の上無視されます。

@param string 正規表現を文字列として与えます。

@param option Regexp::IGNORECASE, Regexp::MULTILINE,
Regexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, fals...

正規表現 (55.0)

正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references

...= /\A
\d+ # 整数部
(\. # 小数点
\d+ # 小数部
)? # 小数点 + 小数部 はなくともよい
\z/x
float_pat.match("3.14") # => #<MatchData "3.14" 1:".14">
//}

空白を表現したい場合はエスケープをしてください。

//emlist[][ruby]{
/x y/x.match("x y") # => ni...