不用return吧 2009/2/12 imxae <[email protected]>: > > $str='[/td][td][/td][td=12]'; > > $str =~ s/\[\/td\]\s*\[td(?:=(\d{1,2}),(\d{1,2})(?:,(\d{1,4}%?))?)?\]/ > return '<\/td><td' . ($2 ? ' colspan="' . $2 . '"' : '') . ($3 ? ' > rowspan="' . $3 . '"' : '') . ($4 ? ' width="' . $4 . '"' : '') . '>'/ > isge; > > > print $str; > > 结果为空.
--~--~---------~--~----~------------~-------~--~----~ 您收到此信息是由于您订阅了 Google 论坛“PerlChina Mongers 讨论组”论坛。 要在此论坛发帖,请发电子邮件到 [email protected] 要退订此论坛,请发邮件至 [email protected] 更多选项,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问该论坛 -~----------~----~----~----~------~----~------~--~---
