我想写这个文字:
203
00:16:38,731 --> 00:16:41,325
Happy Christmas.
your arse I pray God it's our last.
在变量中如下:
Int section : 203
String start_time : 00:16:38,731
String end_time : 00:16:41,325
String Content :
Happy Christmas.
your arse I pray God it's our last.
在我的搜索中,我发现使用RegEx,但我无法使用它。我发现它可以帮助理解我的意思:
Regex unit = new Regex( @"(?<sequence>\d+)\r\n(?<start>\d{2}\:\d{2}\:\d{2},\d{3}) --\> " + @"(?<end>\d{2}\:\d{2}\:\d{2},\d{3})\r\n(?<text>[\s\S]*?\r\n\r\n)", RegexOptions.Compiled | RegexOptions.ECMAScript);
这应该适用于字幕文件l 我该怎么办?
谢谢:)
答案 0 :(得分:0)
请尝试以下操作:
<ServiceInstall
Id="WindowsService"
Name="Service"
DisplayName="My windows Service"
Description="Process text Files and moves them into Database"
Type="ownProcess"
Vital="yes"
Start="auto"
Account="[WIX_ACCOUNT_LOCALSERVICE]"
ErrorControl="critical"
Interactive="no"/>
<ServiceControl
Id="ServiceControl"
Name="Service"
Start="install"
Stop ="both"
Remove="uninstall"
Wait="yes"/>
</Component>