From cm.triggs at auckland.ac.nz  Thu Aug 17 00:31:18 2017
From: cm.triggs at auckland.ac.nz (Chris Triggs)
Date: Wed, 16 Aug 2017 22:31:18 +0000
Subject: [Rd] Problem with a regular expression.
Message-ID: <65e225958ba74a7dbcf0bc4688387e9d@uxcn13-ogg-c.UoA.auckland.ac.nz>

Hi...

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]]



[Rd] Problem with a regular expression.
Chris Triggs