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

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

博客园 - 布里

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 顺序)。