[ruby-core:96727] [Ruby master Feature#16491] ruby string scan can not support full regex string feature

[email protected] Thu, 09 Jan 2020 07:31:14 +0000 (UTC)
Newsgroups gmane.comp.lang.ruby.core
Message-ID <redmine.issue-16491.20200109073114.2c18cc04bdb793a3@ruby-lang.org>
Issue #16491 has been reported by hakehuang (hake huang).

----------------------------------------
Feature #16491: ruby string scan can not support full regex string feature
https://bugs.ruby-lang.org/issues/16491

* Author: hakehuang (hake huang)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
I have a complex regex string which works fine with match method, but fails with scan. and I think it is because the scan method does not implement full function link match. please see attached test file.

the test match regex is /<testsuites((?!<\/testsuites>).|\n)+<\/testsuites>/m

---Files--------------------------------
test.rb (1.9 KB)


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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>