Sign-up....

如何读取引号里面多行的内容?

desc["english"] = "

The remote router is an ACC router.

Some software versions on this router will allow an attacker to run the SHOW

command without first providing any authentication to see part of the router's

configuration.

Solution : Upgrade the software.

Risk factor : Medium";

有这样一段文本,如何提取=后面引号里面9行的内容?thx

[323 byte] By [msdn] at [2007-8-14 13:32:23]
# 1 Re: 如何读取引号里面多行的内容?

不用那么麻烦吧!

假设这段文字已经存在$text里面了

$text =~ /=\s+"([^"]+?)"/s;

print $1;

shhgs at 2005-5-11 21:31:04 >

其他开发语言

All Classified