るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

種類

ライブラリ

クラス

キーワード

検索結果

RegexpError (38012.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 (12.0)

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

...e 以外)であれば
Regexp::IGNORECASE の指定と同じになります。

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

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

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

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

...CII-8BIT になります。
それ以外の指定は警告を出力します。

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

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

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

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

...e 以外)であれば
Regexp::IGNORECASE の指定と同じになります。

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

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

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

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

...CII-8BIT になります。
それ以外の指定は警告を出力します。

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

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

絞り込み条件を変える