From: David Vallner Date: 2006-11-22T03:42:14+09:00 Subject: Re: [OT] Bug in ruby? --------------enigA22C6AD12A9F315A34DABA54 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This is a subject line that's mildly infuriating. I wonder if I can recall more than three threads of that name that actually were a bug in Ruby after all in the past year, and the one that's in living memory was from Ara, and (unsurprisingly) a very subtle issue where it took me three reads to find out why it's wrong behaviour in the first place, not a "method not working at all" issue. If you're not a syntax lawyer, and / or haven't checked the documentation for what you're using a code snippet in the first place, I'd say odds are good it's a bug in your code due to some (maybe not really) gotcha you overlooked. And in that case it would be better to present a problem as such, and providing a more informative subject line to boot. Also: def parse(string, start, ending) string.match(/#{Regexp.escape(start)}.*(?=3D#{Regexp.escape(ending)}/)[0= ] end David Vallner --------------enigA22C6AD12A9F315A34DABA54 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFY0h9y6MhrS8astoRAqNMAJ9g6k2hcMDwQrkuq05MkuwIcC5THQCfVYDZ +cw08/DT2YWa2gnQMEZlRIo= =bibf -----END PGP SIGNATURE----- --------------enigA22C6AD12A9F315A34DABA54--