From: Daniel Carrera Date: 2003-07-10T14:21:09+09:00 Subject: Re: Ruby T-Shirt Idea -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Okay, ignore my last question (except the one about a link to PicAxe). I just figured the syntax (basically by trying every possible permutation). Now I have a new question: Turning a string into a regex. Example: dcarrera ~ $ irb >> var = "he" => "he" >> str = "hello world" => "hello world" >> str =~ /var/ => nil What am I doing wrong? On Thu, Jul 10, 2003 at 02:16:15PM +0900, Daniel Carrera wrote: > On Thu, Jul 10, 2003 at 12:38:10PM +0900, Hal E. Fulton wrote: > > > Hmm, there's the classic "grep in four lines." Can't recall > > exactly how it looks -- I think it used a perlism that I'm > > not used to. > > Doesn't sound that hard. Could someone remind me how to use the File.eachline method? (I > know I've gotten it at least partially wrong there). > > Or could someone give me a link to PickAxe so I can look it up? > > Thanks. > -- > Daniel Carrera | OpenPGP fingerprint: > Graduate TA, Math Dept | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88 > UMD (301) 405-5137 | http://www.math.umd.edu/~dcarrera/pgp.html - -- Daniel Carrera | OpenPGP fingerprint: Graduate TA, Math Dept | 6643 8C8B 3522 66CB D16C D779 2FDD 7DAC 9AF7 7A88 UMD (301) 405-5137 | http://www.math.umd.edu/~dcarrera/pgp.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (SunOS) iD8DBQE/DPe+nxE8DWHf+OcRAiVLAKC3MnthkYBHoYr8qcDkL02x5hwYVgCg1hBl j1H8eTK++lRHo+r1/nnqOcg= =HqaD -----END PGP SIGNATURE-----