我有正则表达式:
Regex: \d+(\d+:\d+:\d+,\d+ --> \d+:\d+:\d+,\d+)\s+?(.+)?word(.+)?
我有一个有subtitle_content列的表;例如,我有一些记录,如下例:
1
00:00:10,770 --> 00:00:12,670
CHECK YOUR EMAIL FOR THE SECOND MISSION
2
00:00:14,540 --> 00:00:15,740
READ IT ALONE word
3
00:00:45,940 --> 00:00:47,640
WANTED - SECOND word MISSION
我想用我的SQL查询发送这个正则表达式模式,我的查询带来了字幕的所有内容,但是我应该使用哪个查询来返回与此正则表达式匹配的subtitle_content行? 在这种情况下我想回来:
00:00:14,540 --> 00:00:15,740
READ IT ALONE word
00:00:45,940 --> 00:00:47,640
WANTED - SECOND word MISSION
答案 0 :(得分:1)
select * from table_name where subtitle_content REGEXP "Regular Expression Here"