ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:72865] [Ruby trunk - Bug #11992] [Open] Regexp match data
       [not found] <redmine.issue-11992.20160115031738@ruby-lang.org>
@ 2016-01-15  3:17 ` rinkevichjm
  2016-01-15  3:18 ` [ruby-core:72866] [Ruby trunk - Bug #11992] " rinkevichjm
  2016-01-15  6:17 ` [ruby-core:72869] [Ruby trunk - Bug #11992] [Feedback] " nobu
  2 siblings, 0 replies; 3+ messages in thread
From: rinkevichjm @ 2016-01-15  3:17 UTC (permalink / raw
  To: ruby-core

Issue #11992 has been reported by James Rinkevich.

----------------------------------------
Bug #11992: Regexp match data
https://bugs.ruby-lang.org/issues/11992

* Author: James Rinkevich
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
m="  M.S. Math \n M.S. Computer Eng. \n".match /M\.S\./
m.offset 0
[1,5]
m.offset 1
[1,5] # should be [13,17]



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:72866] [Ruby trunk - Bug #11992] Regexp match data
       [not found] <redmine.issue-11992.20160115031738@ruby-lang.org>
  2016-01-15  3:17 ` [ruby-core:72865] [Ruby trunk - Bug #11992] [Open] Regexp match data rinkevichjm
@ 2016-01-15  3:18 ` rinkevichjm
  2016-01-15  6:17 ` [ruby-core:72869] [Ruby trunk - Bug #11992] [Feedback] " nobu
  2 siblings, 0 replies; 3+ messages in thread
From: rinkevichjm @ 2016-01-15  3:18 UTC (permalink / raw
  To: ruby-core

Issue #11992 has been updated by James Rinkevich.


Found in jruby too

----------------------------------------
Bug #11992: Regexp match data
https://bugs.ruby-lang.org/issues/11992#change-56099

* Author: James Rinkevich
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
m="  M.S. Math \n M.S. Computer Eng. \n".match /M\.S\./
m.offset 0
[1,5]
m.offset 1
[1,5] # should be [13,17]



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:72869] [Ruby trunk - Bug #11992] [Feedback] Regexp match data
       [not found] <redmine.issue-11992.20160115031738@ruby-lang.org>
  2016-01-15  3:17 ` [ruby-core:72865] [Ruby trunk - Bug #11992] [Open] Regexp match data rinkevichjm
  2016-01-15  3:18 ` [ruby-core:72866] [Ruby trunk - Bug #11992] " rinkevichjm
@ 2016-01-15  6:17 ` nobu
  2 siblings, 0 replies; 3+ messages in thread
From: nobu @ 2016-01-15  6:17 UTC (permalink / raw
  To: ruby-core

Issue #11992 has been updated by Nobuyoshi Nakada.

Description updated
Status changed from Open to Feedback

I can't reproduce it, with any of 1.8..2.3, nor jruby-9.0.1.0.

~~~
$ ruby -e 'm="  M.S. Math \n M.S. Computer Eng. \n".match /M\.S\./; p m.offset(0), m.offset(1)'
-e:1:in `offset': index 1 out of matches (IndexError)
	from -e:1:in `<main>'
~~~

What version do you use?

----------------------------------------
Bug #11992: Regexp match data
https://bugs.ruby-lang.org/issues/11992#change-56102

* Author: James Rinkevich
* Status: Feedback
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
~~~ruby
m="  M.S. Math \n M.S. Computer Eng. \n".match /M\.S\./
m.offset 0
[1,5]
m.offset 1
[1,5] # should be [13,17]



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-15  5:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-11992.20160115031738@ruby-lang.org>
2016-01-15  3:17 ` [ruby-core:72865] [Ruby trunk - Bug #11992] [Open] Regexp match data rinkevichjm
2016-01-15  3:18 ` [ruby-core:72866] [Ruby trunk - Bug #11992] " rinkevichjm
2016-01-15  6:17 ` [ruby-core:72869] [Ruby trunk - Bug #11992] [Feedback] " nobu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).