Displaying 1 result from an estimated 1 matches for "r50849".
2010 Jan 07
1
regex question on escaping "." (and a couple other regex questions as well)
..."\\\\", vector)
all without success.
Thanks, Mark
a <- "160.15.05.00"
grep("[1-9]+.[0-9]+\\.[0-9]+\\.[0-0]+", a)
# [1]
grep("[1-9]+\\.[0-9]+\\.[0-9]+\\.[0-0]+", a)
# integer(0)
> sessionInfo()
R version 2.11.0 Under development (unstable) (2009-12-28 r50849)
x86_64-unknown-linux-gnu
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT...