Skip to content
Prev 256710 / 398506 Next

Is there a better way to parse strings than this?

On Wed, Apr 13, 2011 at 5:18 AM, Dennis Murphy <djmuser at gmail.com> wrote:
Or with stringr:

library(stringr)
str_split_fixed(strings, fixed("..."), n = 2)

# or maybe
str_match(strings, "(..).*\\.\\.\\.(.*)")

Hadley