惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News | PayPal Newsroom
Security Archives - TechRepublic
Security Archives - TechRepublic
Hacker News: Ask HN
Hacker News: Ask HN
H
Hacker News: Front Page
Apple Machine Learning Research
Apple Machine Learning Research
TaoSecurity Blog
TaoSecurity Blog
Help Net Security
Help Net Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(FineUI控件)
Security Latest
Security Latest
Cloudbric
Cloudbric
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Know Your Adversary
Know Your Adversary
A
Arctic Wolf
L
LangChain Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
W
WeLiveSecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
小众软件
小众软件
NISL@THU
NISL@THU
云风的 BLOG
云风的 BLOG
P
Privacy & Cybersecurity Law Blog
S
Security @ Cisco Blogs
博客园 - 【当耐特】
I
InfoQ
Vercel News
Vercel News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
P
Proofpoint News Feed
O
OpenAI News
Google DeepMind News
Google DeepMind News
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
K
Kaspersky official blog
T
Threat Research - Cisco Blogs
量子位
宝玉的分享
宝玉的分享

博客园 - 布里

chrome浏览器扩展“猫抓” Premiere调整画布尺寸 foobar2000歌词插件使用方法 blob视频地址如何下载 ffmpeg视频分割 ffmpeg合并视频+音频 You-Get和youtube-dl 【会声会影】初装会声会影时,必要的设置 【会声会影】视频导出、输出时,如何设置参数 【会声会影】导入的srt字幕文件,如何快速批量调整字体及大小 把h264文件快速包装成mp4格式 百度地图API的网页使用 ASPCMS_判断语句if标签的使用 ASS字幕制作 批处理修改Hosts文件 Outlook2013修改数据文件默认存放目录 获取【酷我音乐】歌曲URL地址 Win7远程桌面的多用户连接破解 Print Spooler 服务自动停止
Notepad++正则表达式——去掉srt字幕文件的时间轴
布里 · 2019-05-19 · via 博客园 - 布里

式子:

(?m)^([0-9])(.*?).{28}

解释:

?m :多行模式,表示更改^和$的 含义,使它们分别在任意一行的行首和行尾匹配,而不仅仅在整个字符串的开头和结尾匹配。(在此模式下,$的 精确含意是:匹配\n之前的位置以及字符串结束前的位置.)

^ : 一行的开始

^([0-9]) :一行的开始为任意数字

(.*?) :勉强型,0个或多个任意字符

.{28} :匹配任意字符28个。

图示:

其它:

^[^0-9] :非数字开头

^[^A-Za-z] :非字母(大写、小写)开头

^[u4e00-u9fa5] 或 ^[\u4e00-\u9fa5]:非汉字开头

^[^u4e00-u9fa5] 或 ^[^\u4e00-\u9fa5] :以汉字开头

\r\n :去掉换行,一定要\r\n一块使用,才能不留空行。(注意 \r\n 顺序)。