[Rd] Problem with a regular expression.

Chris Triggs cm.triggs at auckland.ac.nz
Thu Aug 17 00:31:18 CEST 2017


I have come upon a problem with a regular expression which causes base-R to freeze.  I have reproduced the phenomenon on several machines running R under Windows 10, and also under OSX  on different Apple MACs.

The minimal example is:-
Oldterm is a vector of characters, e.g. "A", "B", "A", "*", "B"
The regular expression is "\\\\)"

The call which freezes R is
strsplit(Oldterm, "\\\\)" )

Thomas - after he had reproduced the problem - suggested that I submit it to r-devel.

Best wishes....
           Chris Triggs

	[[alternative HTML version deleted]]

More information about the R-devel mailing list