作者nash7555 (Caspar)
看板Perl
标题Re: [请益] 删除特殊字串, 保留其它内容(soved)
时间Sun Apr 19 11:41:37 2020
: 显示如下:
: (7006): actual bit length 16 differs from formal bit length 13 for port
: "cfgbp_link2csr"
: (120): truncated value with size 64 to match size of target (32)
: (144): truncated value with size 64 to match size of target (32)
: (241): truncated value with size 5 to match size of target (4)
: 但是砍掉就还不知道怎麽做...
: 期望是:
: : actual bit length 16 differs from formal bit length 13 for port
: "cfgbp_link2csr"
: : truncated value with size 64 to match size of target (32)
: : truncated value with size 64 to match size of target (32)
: : truncated value with size 5 to match size of target (4)
研究出来用以下code可以搞定, 谢谢~
$string_2 =~ tr/^\([0-9]+\)//d;
就可以印出上述的要求了
--
The elevator to success is out of order. You'll have to use the stairs one
step at a time.
像搭电梯般快速成功是不切实际的。你必需沿着楼梯,一步一阶的往上爬。
Joe Girard
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 223.137.246.134 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Perl/M.1587267702.A.C13.html