Re: [R] strapply and characters adjacent to the matched pattern

2012-07-26 Thread mdvaan
Thanks Gabor for your invaluable help! I learned a lot. -- View this message in context: http://r.789695.n4.nabble.com/strapply-and-characters-adjacent-to-the-matched-pattern-tp4637673p4637939.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] strapply and characters adjacent to the matched pattern

2012-07-26 Thread Gabor Grothendieck
On Wed, Jul 25, 2012 at 4:34 PM, mdvaan wrote: > Thanks Gabor. That worked really well. I have been reading about the use of > POSIX and regular expressions and I tried to use your example to see if I > could ignore all matches in which the character preceding (rather than > following) the match

Re: [R] strapply and characters adjacent to the matched pattern

2012-07-25 Thread mdvaan
Thanks Gabor. That worked really well. I have been reading about the use of POSIX and regular expressions and I tried to use your example to see if I could ignore all matches in which the character preceding (rather than following) the match is one of [:alpha:]? So far, I have been unsuccessful. C

Re: [R] strapply and characters adjacent to the matched pattern

2012-07-25 Thread Gabor Grothendieck
On Tue, Jul 24, 2012 at 5:06 PM, mdvaan wrote: > Hi, > > In the example below, one of the searched patterns "SE" is matched in the > word "second". I would like to ignore all matches in which the character > following the match is one of [:alpha:]. How do I do this without removing > the "ignore.c

Re: [R] strapply and characters adjacent to the matched pattern

2012-07-25 Thread arun
 list1 [[1]] [1] "Santa Fe Gold Corp" [[2]] [1] "Starpharma Holdings" A.K. - Original Message - From: mdvaan To: r-help@r-project.org Cc: Sent: Tuesday, July 24, 2012 5:06 PM Subject: [R] strapply and characters adjacent to the matched pattern Hi, In the example be

[R] strapply and characters adjacent to the matched pattern

2012-07-24 Thread mdvaan
Hi, In the example below, one of the searched patterns "SE" is matched in the word "second". I would like to ignore all matches in which the character following the match is one of [:alpha:]. How do I do this without removing the "ignore.case = T" argument of the strapply function? Thank you very