るりまサーチ

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

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

種類

ライブラリ

クラス

キーワード

検索結果

RegexpError (44006.0)

正規表現のコンパイルに失敗したときに発生します。

...正規表現のコンパイルに失敗したときに発生します。

例:

$ ruby -e 'Regexp.compile("*")'
-e:1:in `initialize': target of repeat operator is not specified: /*/ (RegexpError)
from -e:1:in `Regexp#compile'
from -e:1...

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

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

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

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

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

@param opti...
...on Regexp::IGNORECASE, Regexp::MULTILINE,
R
egexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
R
egexp::IGNORECASE の指定と...
...同じになります。

@raise RegexpError 正規表現のコンパイルに失敗した場合発生します。

//emlist[例][ruby]{
str = "This is Regexp"
t1 = Regexp.compile("this is regexp", Regexp::IGNORECASE)
t1.match(str)
p $~ # => "This is Regexp"

t2 = Regexp.compile('
this #...

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

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

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

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

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

@par...
...am option Regexp::IGNORECASE, Regexp::MULTILINE,
R
egexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
R
egexp::IGNORECASE の指...
...定と同じになります。

@param code "n", "N" が与えられた時には、生成された正規表現のエンコーディングは ASCII-8BIT になります。
それ以外の指定は警告を出力します。

@raise RegexpError 正規表現のコンパイルに失敗し...

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

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

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

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

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

@param opti...
...on Regexp::IGNORECASE, Regexp::MULTILINE,
R
egexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
R
egexp::IGNORECASE の指定と...
...同じになります。

@raise RegexpError 正規表現のコンパイルに失敗した場合発生します。

//emlist[例][ruby]{
str = "This is Regexp"
t1 = Regexp.compile("this is regexp", Regexp::IGNORECASE)
t1.match(str)
p $~ # => "This is Regexp"

t2 = Regexp.compile('
this #...

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

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

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

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

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

@par...
...am option Regexp::IGNORECASE, Regexp::MULTILINE,
R
egexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
R
egexp::IGNORECASE の指...
...定と同じになります。

@param code "n", "N" が与えられた時には、生成された正規表現のエンコーディングは ASCII-8BIT になります。
それ以外の指定は警告を出力します。

@raise RegexpError 正規表現のコンパイルに失敗し...

絞り込み条件を変える