[R] strsplit (regex)

Hans W. Borchers hwborchers at gmail.com
Tue Nov 11 22:18:20 CET 2008


stephen sefick <ssefick <at> gmail.com> writes:

> 
> #how do I break these up into first two letters (RM), number, and then
> the last part
> #is there an easily accessible regex tutorial on the internet?

For regular expressions, the perl man pages at <http://perldoc.perl.org/
perlre.html> are quite good and present the essentials in condensed form, but 
still very useful. (Some constructs may not work outside of Perl.)

A more elaborate tutorial is to be found at Regular-Expressions.info, i.e. 
<http://www.regular-expressions.info/>. Of course, there are many, many more, 
see the Open Directory for one long list. And each programming language has its 
own page on regular expressions.

At the Regular Expression Library <http://regexlib.com> you can search for and 
copy regular expressions, for example there are 20 patterns returned when 
searching for regular expressions on 'floats'.

Hans Werner Borchers

> v = (structure(1:122, ...
> 
> thanks
>



More information about the R-help mailing list