[Rd] gregexpr (PR#9965)

From: <dolanp_at_science.oregonstate.edu>
Date: Wed, 10 Oct 2007 16:35:44 +0200 (CEST)

Full_Name: Peter Dolan
Version: 2.5.1
OS: Windows
Submission from: (NULL) (

gregexpr does not find all matching substrings if the substrings overlap:

> gregexpr("abab","ababab")

[1] 1
[1] 4

It does work correctly in Version 2.3.1 under linux.

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 10 Oct 2007 - 15:17:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.