From: Derek Wyatt Date: 2005-08-22T06:52:18+09:00 Subject: regex multiline weirdness -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This one's got me stumped. I'm trying to rip out incomplete HTML tags from the end of a string... here's an example: Here is a string with ]*?$/m, "") but it doesn't do squat. Interestingly enough, i tried the following in perl, which i think is the direct translation: ~ $str =~ s/<[^>]*?$//s and it works just fine. Anyone know how to get this to work in ruby? Thanks, D - -- Derek Wyatt - C++ / Ruby / Unix Programmer http://derekwyatt.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) iD8DBQFDCPeOwwHFeC88e2IRAgBaAJ9yOjA7vUOTw10mRBfLQ6a7Tdv8gACeIZtP diaJ4Yi7wSZzMiAi8vNQW0A= =fpoc -----END PGP SIGNATURE-----