From: Nanyang Zhan Date: 2008-04-28T01:44:43+09:00 Subject: how to match any character with ruby regexp? I am writing a method to strip out (the link tag) from input text, and I use the gsub method to do the job: >>str = "please vist abc.com for more info." >>str.gsub(Regexp.new("<\/?a(.)*?>"), "") >>=>"please vist abc.com for more info." It seems work well, but I'm not confident that the (.)* will safelly match all the characters inside a tag, for example, what if there is a new line? So, for ruby regex, which symbol can be surely used to represent any character of a string? Thanks. -- Posted via http://www.ruby-forum.com/.