From: Daniel Carrera Date: 2003-12-03T07:57:55+09:00 Subject: Re: Please recommend a regular expression excluding return character. .. The '.' doesn't match newlines. $ irb >> "\n" =~ /./ => nil >> "\n" =~ /\n/ => 0 >> On Wed, Dec 03, 2003 at 07:55:18AM +0900, Kurt Euler wrote: > All- > > Can anyone recommend a regular expression that excludes the return > character? > > My objective is to find occurances of a string WITHIN A LINE of a text > file. Thus, if givein some_string1 and some_string2, match: > > > > > Thanks! > > Kurt Euler > > > -- Daniel Carrera | Top 100 things you don't want the sysadmin to say... PhD student. | Math Dept. UMD | 84. Where's the GUI on this thing?