From: Daniel Carrera Date: 2003-12-03T08:00:56+09:00 Subject: Re: Please recommend a regular expression excluding return character. .. In other words: /#{some_string1}.#{some_string2}/ Cheers, Daniel. On Wed, Dec 03, 2003 at 07:57:55AM +0900, Daniel Carrera wrote: > 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? -- 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?