作者:mobiledu2502889883 | 来源:互联网 | 2023-09-10 10:12
Fromanykindofscalar,whatregexcouldIusetomatchthefirstfivelinesofitanddiscardthe
From any kind of scalar, what regex could I use to match the first five lines of it and discard the rest?
从任何类型的标量,我可以使用什么正则表达式来匹配它的前五行并丢弃其余的?
8 个解决方案