From: Jim Burgess Date: 2009-10-09T21:46:09+09:00 Subject: Making one reg ex out of two I have a string: course_info = "10.10.09Maths" I want to use a reg ex to extract the title from the string, in this case "Maths" So far I came up with: course_info.gsub!(/^(.*)/, "") course_info.gsub!(/<\/title>(.*)$/, "").chomp! p course_info # -> "Maths" Is it possible amalgamate these two regular expressions into one or to improve this in any way? Am grateful for any help. -- Posted via http://www.ruby-forum.com/.