search for: xaaaaxaaaax

Displaying 1 result from an estimated 1 matches for "xaaaaxaaaax".

2006 May 06
2
regular expression change in R version 2.3.0?
...tion quantifiers. (2) How can one be informed about regular expression changes and the associated functions in new versions of R? Here is the example code to demonstrate the version difference of the 'gregexpr' function between versions 2.3.0 and 2.2.0: # Example string x <- "xaaaaxaaaax" # gregexpr in Version 2.2.0 (2005-10-06 r35749) gregexpr("[a]{1,}", as.character(x), perl=T) [[1]] [1] 2 7 attr(,"match.length") [1] 4 4 # gregexpr in Version 2.3.0 (2006-04-24) gregexpr("[a]{1,}", as.character(x), perl=T) [[1]] [1] 2 3 4 5 7 8 9 10 att...