[R] Regular expressions: retrieving matches depending on intervening strings

2006-08-16 Thread Stefan Th. Gries
Dear all I again have a regular expression question. I have this character vector a: a-c(w AT0a w NN1blockage w CJCand w DT0thatc PUN., w AT0a w NN1blockage w CJCand ptr target=KB2LC003w DT0thatc PUN., w AT0a w NN1blockage w CJCandc PUN, w DT0thatc PUN., w AT0a w NN1blockage w

[R] Regular expressions: retrieving matches depending on intervening strings [Follow-up]

2006-08-16 Thread Stefan Th. Gries
Dear all This is a follow-up to an earlier posting today regarding a regular expression question. In the meantime, this is the best approximation I could come up with and should give you a better idea what I am talking about. a-c(w AT0a w NN1blockage w CJCand w DT0thatc PUN., w AT0a w