[R] Regular Expressions

From: Sangick Jeon <sijeon_at_ucdavis.edu>
Date: Tue 13 Jul 2004 - 09:59:18 EST


Is there a way to use regular expressions to capture two or more words in a sentence? For example, I wish to to find all the lines that have the words "thomas", "perl", and "program", such as "thomas uses a program called perl", or "perl is a program that thomas uses", etc.

I'm sure this is a very easy task, I would greatly appreciate any help. Thanks!


R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 13 10:07:10 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:35:48 EST