< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #9728 has been updated by Usaku NAKAMURA.
Backport changed from 2.0.0: REQUIRED, 2.1: DONE to 2.0.0: DONE, 2.1: DONE
Backported into `ruby_2_0_0` at r47976.
----------------------------------------
Bug #9728: Regexp bug
https://bugs.ruby-lang.org/issues/9728#change-49493
* Author: Tsuyoshi Sawada
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: Ruby 2.0
* Backport: 2.0.0: DONE, 2.1: DONE
----------------------------------------
As reported in StackOverflow (http://stackoverflow.com/questions/23004527) (with a wrong expectation), the following regex pattern with the `*` operator does not match.
"ab" =~ /(?!^a).*b/
# => nil
When `?` is used instead, it seems to match correctly:
"ab" =~ /(?!^a).?b/
# => 1
According to the original reporter of the linked site, this does not happen in Ruby 1.9.3.
--
https://bugs.ruby-lang.org/