[R] perl expression question
ggrothendieck at gmail.com
Tue Sep 23 03:40:27 CEST 2008
By the way, although a regular expression solutions was asked for
if one expands that to any solution then R does have a function
specifically for this case:
On Mon, Sep 22, 2008 at 9:23 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> Try this:
>> sub(".*/", "", stock)
>  "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.
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help