Skip to content
Prev 172559 / 398506 Next

regular expression question

Here is another approach that still uses strspit if you want to stay with that:
[[1]]
[1] "(-0.791,-0.263]" "(-38,-1.24]"     "(0.96,2.43]"   

This uses the Perl 'look-ahead' indicator to say only match on a period that is followed by a '(', but don't include the '(' in the match.

Hope this helps,