From: Daniel Carrera Date: 2003-04-17T06:36:45+09:00 Subject: [Q] Reg. Expressios with "\n" Hello, I'm trying to match a regular expression on a string that contains new-line characters. e.g. >> str = "hello something \n world" => "hello something \n world" >> str =~ /(.*<\/html>)/ => nil I want an RE that matches this string, but '.' doesn't match the \n character. I guess I could replace the \n's by something else, but I'd rather not alter the original string if I can avoid it. Any ideas? Thanks. -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137