作者nash7555 (Caspar)
看板Perl
标题[请益] 删除特殊字串, 保留其它内容
时间Sat Apr 18 21:41:55 2020
各位高手, 先进
perl regexp小弟搞半天还是不太能掌握
如下行内容 - ($line)
(582): truncated value with size 8 to match size of target (7)
想变成 - ($line_temp)
: truncated value with size 8 to match size of target (7)
该如何撰写code
基本上想删除的内容是括号内任意0~9数字, 位元数不一定
想留下的内容是括号後面的(可能包含大小字母, 数字和特别符号)
万分感谢~
--
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.1587217322.A.35E.html