[R] Regexp bug or misunderstanding
Martin Møller Skarbiniks Pedersen
tr@xpl@yer @ending from gm@il@com
Mon Jul 2 14:52:37 CEST 2018
Hi,
Have I found a bug in R? Or misunderstood something about grep() ?
Case 1 gives the expected output
Case 2 does not gives the expected output.
I expected integer(0) also for this case.
case 1:
grep("[:digit:]", "**ABAAbabaabackabaloneaban")
integer(0)
case 2:
grep("[:digit:]", "**ABAAbabaabackabaloneaband")
[1] 1
Regards
Martin
More information about the R-help
mailing list