Re: [R] how to get to interesting part of pattern match

2004-11-19 Thread Peter Wolf
Vadim Ogranovich wrote: Hi, I am looking for a way to extract an interesting part of the match to a regular expression. For example the pattern [./](*.) matches a substring that begins with either . or / followed by anything. I am interested in this anything w/o the . or / prefix. If say I match

Re: [R] how to get to interesting part of pattern match

2004-11-18 Thread Jean Eid
sub(.*/, , abc/foo) [1] foo Jean On Thu, 18 Nov 2004, Vadim Ogranovich wrote: Hi, I am looking for a way to extract an interesting part of the match to a regular expression. For example the pattern [./](*.) matches a substring that begins with either . or / followed by anything. I am

Re: [R] how to get to interesting part of pattern match

2004-11-18 Thread Gabor Grothendieck
Vadim Ogranovich vograno at evafunds.com writes: : I am looking for a way to extract an interesting part of the match to : a regular expression. For example the pattern [./](*.) matches a : substring that begins with either . or / followed by anything. I am : interested in this anything w/o the