ライブラリ
- ビルトイン (1253)
- abbrev (22)
- csv (33)
- expect (22)
-
irb
/ magic-file (11) -
minitest
/ spec (2) -
minitest
/ unit (2) - mkmf (22)
-
net
/ telnet (12) - openssl (55)
- optparse (132)
- pathname (11)
- rake (22)
-
rdoc
/ markup (33) -
rdoc
/ parser (22) - resolv (77)
-
rexml
/ parsers / sax2parser (55) -
ripper
/ lexer (11) - rubygems (11)
-
rubygems
/ dependency (22) - strscan (132)
-
test
/ unit (1) - uri (47)
-
webrick
/ httputils (22)
クラス
- Array (11)
- CSV (33)
-
Gem
:: Dependency (22) - IO (22)
- MatchData (125)
-
MiniTest
:: Unit (1) - Module (1)
-
Net
:: Telnet (12) - NilClass (6)
- Object (21)
- OptionParser (132)
- Pathname (11)
-
RDoc
:: Markup (33) -
RDoc
:: Options (22) -
RDoc
:: Parser (22) -
REXML
:: Parsers :: SAX2Parser (55) -
Rake
:: FileList (11) - Regexp (305)
- Resolv (11)
-
Resolv
:: IPv4 (11) -
Resolv
:: IPv6 (55) - Ripper (11)
- String (509)
- StringScanner (121)
- Symbol (145)
モジュール
- Abbrev (11)
- Gem (11)
- Kernel (165)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: Buffering (55) -
Test
:: Unit (1) - URI (47)
-
WEBrick
:: HTTPUtils (22)
オブジェクト
-
IRB
:: MagicFile (11)
キーワード
-
$ & (11) -
$ & # 39; (11) -
$ + (11) -
$ -0 (11) -
$ -F (11) -
$ / (11) -
$ ; (11) -
$ ` (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - == (22)
- === (11)
- =~ (59)
- AddressRegex (11)
- DateMatcher (11)
- DateTimeMatcher (11)
-
ENCODING
_ SPEC _ RE (11) - EXTENDED (11)
- FIXEDENCODING (11)
- IGNORECASE (11)
-
LABEL
_ LIST _ RE (11) - MULTILINE (11)
-
NEWS for Ruby 2
. 5 . 0 (7) - NOENCODING (11)
- Regex (22)
-
Regex
_ 6Hex4Dec (11) -
Regex
_ 8Hex (11) -
Regex
_ CompressedHex (11) -
Regex
_ CompressedHex4Dec (11) - RegexpError (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
-
SEPARATOR
_ PAT (11) -
SIMPLE
_ LIST _ RE (11) - StringScanner (11)
- UNSAFE (11)
-
WIN
_ PATTERNS (11) - [] (176)
- []= (77)
- abbrev (22)
-
add
_ special (11) -
assert
_ match (1) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- casefold? (11)
- check (11)
-
check
_ until (11) - cmd (4)
- compile (11)
- each (11)
-
each
_ line (11) -
egrep
_ cpp (22) - encode (7)
- encoding (11)
- eql? (22)
- escape (29)
-
escape
_ path (11) - exclude (22)
- exist? (11)
- expect (22)
-
extra
_ accessors (11) -
fixed
_ encoding? (11) - gets (11)
- gsub (77)
- gsub! (44)
- hash (22)
- index (11)
-
infect
_ with _ assertions (1) -
last
_ match (22) - listen (55)
- login (4)
- match (55)
- match? (35)
-
must
_ match (1) - name (11)
-
named
_ captures (11) - names (11)
- new (22)
- offset (22)
- on (132)
-
parse
_ files _ matching (11) - parsers (11)
- partition (11)
- pathmap (11)
- quote (11)
- readline (11)
- readlines (11)
- regexp (33)
- rindex (11)
- rpartition (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / query _ command (11) -
run
_ test _ suites (1) - scan (33)
-
scan
_ full (11) -
scan
_ until (11) -
search
_ full (11) -
setup
_ argv (1) - skip (11)
-
skip
_ until (11) - slice (132)
- source (11)
- split (17)
-
start
_ with? (12) - sub (55)
- sub! (33)
-
to
_ regexp (11) -
to
_ s (11) - union (11)
-
values
_ at (11) - waitfor (4)
- はじめに (11)
- クラス/メソッドの定義 (11)
- リテラル (11)
- 制御構造 (11)
検索結果
先頭5件
-
正規表現 (19143.0)
-
正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references
...正規表現
* metachar
* expansion
* char
* anychar
* string
* str
* quantifier
* capture
* grouping
* subexp
* selector
* anchor
* cond
* option
* encoding
* comment
* free_format_mode
* absenceop
* list
* specialvar
* references
正規表現(regular ex......pression)は文字列のパターンを記述するための言語です。
また、この言語で記述されたパターンも正規表現と呼びます。
正規表現を用いると、文字列が指定したパターンを含んでいるかどうかを判定し、
また含んでいるな......ば
//emlist[][ruby]{
/[a-z]/
/\Axyz\Z/
//}
という正規表現において "[a-z]", "\A", "\Z"はメタ文字列です。
===[a:expansion] 式展開
正規表現内では、#{式} という形式で式を評価した文字列を埋め込むことが
できます。
//emlist[][ruby]{
place = "... -
Resolv
:: AddressRegex -> Regexp (15416.0) -
IPアドレスにマッチする正規表現です。
...IPアドレスにマッチする正規表現です。... -
Resolv
:: IPv6 :: Regex _ CompressedHex -> Regexp (12416.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 (12416.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
という文字列とマッチします。... -
RDoc
:: Parser . parsers -> [[Regexp , RDoc :: Parser]] (9416.0) -
RDoc::Parser#parse_files_matching で登録した正規表現とパーサクラ スの配列の配列を返します。
...
RDoc::Parser#parse_files_matching で登録した正規表現とパーサクラ
スの配列の配列を返します。... -
Resolv
:: IPv4 :: Regex -> Regexp (9316.0) -
IPv4 のアドレスの正規表現です。
...IPv4 のアドレスの正規表現です。... -
Resolv
:: IPv6 :: Regex -> Regexp (9316.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
:: IPv6 :: Regex _ 6Hex4Dec -> Regexp (9316.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 (9316.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
という文字列とマッチします。... -
String
# byterindex(pattern , offset = self . bytesize) -> Integer | nil (9260.0) -
文字列のバイト単位のインデックス offset から左に向かって pattern を探索します。 最初に見つかった部分文字列の左端のバイト単位のインデックスを返します。 見つからなければ nil を返します。
...ら左に向かって pattern を探索します。
最初に見つかった部分文字列の左端のバイト単位のインデックスを返します。
見つからなければ nil を返します。
引数 pattern は探索する部分文字列または正規表現で指定します。
offs......et が負の場合は、文字列の末尾から数えた位置から探索します。
byterindex と String#byteindex とでは、探索方向だけが逆になります。
完全に左右が反転した動作をするわけではありません。
探索はその開始位置を右から左にず......String#byteindex の場合][ruby]{
p "stringstring".byteindex("ing", 1) # => 3
# ing # ここから探索を始める
# ing
# ing # 右にずらしていってここで見つかる
//}
//emlist[String#byterindex の場合][ruby]{
p "stringstring".byterindex("ing", -1...