ライブラリ
- ビルトイン (351)
-
minitest
/ spec (1) -
minitest
/ unit (1) -
rdoc
/ markup (24) -
rdoc
/ parser (12) - resolv (84)
- strscan (120)
クラス
- Module (1)
-
RDoc
:: Markup (24) -
RDoc
:: Options (24) -
RDoc
:: Parser (12) - Regexp (189)
- Resolv (12)
-
Resolv
:: IPv4 (12) -
Resolv
:: IPv6 (60) - String (105)
- StringScanner (120)
- Symbol (33)
モジュール
- Kernel (24)
-
MiniTest
:: Assertions (1)
キーワード
-
$ -F (12) -
$ ; (12) - == (12)
- === (12)
- =~ (12)
- AddressRegex (12)
-
LABEL
_ LIST _ RE (12) - MULTILINE (12)
- RREGEXP (12)
-
Regex
_ 6Hex4Dec (12) -
Regex
_ 8Hex (12) -
Regex
_ CompressedHex (12) -
Regex
_ CompressedHex4Dec (12) -
SIMPLE
_ LIST _ RE (12) - [] (12)
- []= (36)
-
assert
_ match (1) - casefold? (12)
- check (12)
-
check
_ until (12) - compile (12)
- eql? (12)
- exclude (12)
- exist? (12)
-
extra
_ accessors (12) -
fixed
_ encoding? (12) -
infect
_ with _ assertions (1) -
last
_ match (24) - match (48)
- match? (39)
- new (12)
-
parse
_ files _ matching (12) - scan (12)
-
scan
_ full (12) -
scan
_ until (12) -
search
_ full (12) - skip (12)
-
skip
_ until (12) - slice (36)
- slice! (12)
-
try
_ convert (12) - ~ (12)
- 正規表現 (12)
検索結果
先頭5件
-
Resolv
:: IPv6 :: Regex -> Regexp (21265.0) -
IPv6のアドレスの正規表現です。 Resolv::IPv6::Regex_6Hex4Dec, Resolv::IPv6::Regex_8Hex, Resolv::IPv6::Regex_CompressedHex, Resolv::IPv6::Regex_CompressedHex4Dec, のいずれかとマッチする文字列とマッチします。
...IPv6のアドレスの正規表現です。
Resolv::IPv6::Regex_6Hex4Dec,
Resolv::IPv6::Regex_8Hex,
Resolv::IPv6::Regex_CompressedHex,
Resolv::IPv6::Regex_CompressedHex4Dec,
のいずれかとマッチする文字列とマッチします。... -
Resolv
:: IPv4 :: Regex -> Regexp (21201.0) -
IPv4 のアドレスの正規表現です。
IPv4 のアドレスの正規表現です。 -
Resolv
:: IPv6 :: Regex _ 6Hex4Dec -> Regexp (9204.0) -
IPv6の各文字列表記とマッチする正規表現です。順に * a:b:c:d:e:f:w.x.y.z * a:b:c:d:e:f:g:h * a::b * a::b:w.x.y.z という文字列とマッチします。
IPv6の各文字列表記とマッチする正規表現です。順に
* a:b:c:d:e:f:w.x.y.z
* a:b:c:d:e:f:g:h
* a::b
* a::b:w.x.y.z
という文字列とマッチします。 -
Resolv
:: IPv6 :: Regex _ 8Hex -> Regexp (9204.0) -
IPv6の各文字列表記とマッチする正規表現です。順に * a:b:c:d:e:f:w.x.y.z * a:b:c:d:e:f:g:h * a::b * a::b:w.x.y.z という文字列とマッチします。
IPv6の各文字列表記とマッチする正規表現です。順に
* a:b:c:d:e:f:w.x.y.z
* a:b:c:d:e:f:g:h
* a::b
* a::b:w.x.y.z
という文字列とマッチします。 -
Resolv
:: IPv6 :: Regex _ CompressedHex -> Regexp (9204.0) -
IPv6の各文字列表記とマッチする正規表現です。順に * a:b:c:d:e:f:w.x.y.z * a:b:c:d:e:f:g:h * a::b * a::b:w.x.y.z という文字列とマッチします。
IPv6の各文字列表記とマッチする正規表現です。順に
* a:b:c:d:e:f:w.x.y.z
* a:b:c:d:e:f:g:h
* a::b
* a::b:w.x.y.z
という文字列とマッチします。 -
Resolv
:: IPv6 :: Regex _ CompressedHex4Dec -> Regexp (9204.0) -
IPv6の各文字列表記とマッチする正規表現です。順に * a:b:c:d:e:f:w.x.y.z * a:b:c:d:e:f:g:h * a::b * a::b:w.x.y.z という文字列とマッチします。
IPv6の各文字列表記とマッチする正規表現です。順に
* a:b:c:d:e:f:w.x.y.z
* a:b:c:d:e:f:g:h
* a::b
* a::b:w.x.y.z
という文字列とマッチします。 -
Regexp
. compile(string , option = nil) -> Regexp (9200.0) -
文字列 string をコンパイルして正規表現オブジェクトを生成して返します。
...@param option Regexp::IGNORECASE, Regexp::MULTILINE,
Regexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
Regexp::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 # ここ......用されない
\ is
\ regexp # ここも使用されない
', Regexp::EXTENDED | Regexp::IGNORECASE)
t2.match(str)
p Regexp.last_match # => "This is Regexp"
str = "ふるいけや\nかわずとびこむ\nみずのおと"
t2 = Regexp.compile("ふる.*?と", Regexp::MULTILINE)
p t2.match(str)[0]... -
Regexp
. compile(string , option = nil , code = nil) -> Regexp (9200.0) -
文字列 string をコンパイルして正規表現オブジェクトを生成して返します。
...@param option Regexp::IGNORECASE, Regexp::MULTILINE,
Regexp::EXTENDED
の論理和を指定します。
Integer 以外であれば真偽値の指定として見なされ
、真(nil, false 以外)であれば
Regexp::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 # ここ......用されない
\ is
\ regexp # ここも使用されない
', Regexp::EXTENDED | Regexp::IGNORECASE)
t2.match(str)
p Regexp.last_match # => "This is Regexp"
str = "ふるいけや\nかわずとびこむ\nみずのおと"
t2 = Regexp.compile("ふる.*?と", Regexp::MULTILINE)
p t2.match(str)[0]... -
Resolv
:: AddressRegex -> Regexp (9200.0) -
IPアドレスにマッチする正規表現です。
IPアドレスにマッチする正規表現です。 -
Regexp
# casefold? -> bool (9100.0) -
正規表現が大文字小文字の判定をしないようにコンパイルされている時、 真を返します。
...正規表現が大文字小文字の判定をしないようにコンパイルされている時、
真を返します。
//emlist[例][ruby]{
reg = Regexp.new("foobar", Regexp::IGNORECASE)
p reg.casefold? # => true
reg = Regexp.new("hogehoge")
p reg.casefold? # => false
//}...