[R] perl expression question

Gabor Grothendieck
Tue, 23 Sep 2008 01:23:33 -0000

Try this:

> sub(".*/", "", stock)
[1] "BLC.NYSE"

On Mon, Sep 22, 2008 at 8:29 PM,  <markleeds at verizon.net>
wrote:
> If I have the string below. does someone know a regular expression to just
> get the "BLC.NYSE". I bought the O'Reilley
> book and read it when I can  and I study the solutions on the list but
I'm
> still not self sufficient with these things. Thanks.