Thanks. But It does not display the output that I need. $string1="\"email title\""; $string2='email title';
$string1 =~ /.*/; print "s1 = $string1 \n"; print "s2 = $string2 \n"; Should s1 = s2? On Tue, 2 Nov 2004 10:05:39 +0100, Ing. Branislav Gerzo <[EMAIL PROTECTED]> wrote: > Khairul Azmi [KA], on Tuesday, November 2, 2004 at 16:43 (+0800) > contributed this to our collective wisdom: > KA> I am newbies in this regex world. I just want to extract the character > KA> double quotes at the beginning and the ending of a string. > > KA> $string1 = "this is the string"; > > KA> so that $string1 would be 'this is the string' without the double quotes. Thanks > > $string =~ /.*/; > > this is very very easy, just read something more about regexes. If > you'll know them, you'll love them :) > > -- > > ...m8s, cu l8r, Brano. > > [Incest is relatively boring.] > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>