Skip to content
Prev 172562 / 398506 Next

regular expression question

Greg Snow wrote:
right;  you could extend this pattern to split the string by every dot
that does not separate two digits, for example:
   
    strsplit(tmp, '(?<!\\d)\\.(?!\\d)', perl=TRUE)

of course, this fails if there are numbers without a leading zero, e.g., .11

vQ