arg2 should be escaped as () has a meaning in regexps. arg2 = "\\(1\\)a" p "match" if arg1.match(arg2) hth, ./alex -- .w( the_mindstorm )p. On 7/19/06, Volkan Civelek <vcivelek / yahoo.com> wrote: > > > arg1 = "(1)a" > arg2 = "(1)a" > > if arg1.match(arg2) > puts "Matched" > else > puts "Don't Matched" > end > > > gives me "Don't Matched" ?? > > Regards, > Volkan > > > -- > Posted via http://www.ruby-forum.com/. > >