From: Rove Monteux Date: 2004-04-26T20:25:20+09:00 Subject: Variable matching Hi, Quite new to regex myself, Im trying to match a chunk of the text with the following, chunk = content.scan(/(.*)/m) That works alright, and its contents returned to the chunk string. Now Im trying to do that way, $start = "" $end = "" chunk = content.scan(/$start(.*)$end/m) Obviously that doesnt works, suppose because of $ being a special variable ? So my question is how to do pattern matching using variables like that ? Thanks ! Rove -- Rove Monteux Systems Administrator rove.monteux@fluid-rock.com