Hey All, I hope that you can help me. I have been struggling with this issue the past couple of hours and can't seem to get it to work.
I am trying to get a value through pattern matching. Here is the string: <xsl:output method="html" encoding="utf-8" indent="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" /> Now, I want to match against that string and retrieve the value of doctype-system. I am doing the following.. $contents =~ m/doctype-system="(.*)"/i; $dtd_system = $1; This works, except that I am getting the value of everything between the 1st quotes and the last quotes on the line (after doctype-public). So here is the value of $dtd_system, using the code above: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" So, how do I tell it to stop at the first quote, and not to match to the last quote on that line? Is there a way to do this? Any help would be VERY much appreciated. Thanks so much! Darren Nay [EMAIL PROTECTED]