We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
这是我目前使用的
^(?<n>[^【】]+?)?\:?\s*【(?<cc>[^【】]+?)】?$
有其他更好的可以在下方提出。
The text was updated successfully, but these errors were encountered:
有些同传用的冒号:和引号的 ^(?<n>[^【】]+?)?\:*\s*[【 : " “](?<cc>[^【】]+?)[】: " ”]*$
^(?<n>[^【】]+?)?\:*\s*[【 : " “](?<cc>[^【】]+?)[】: " ”]*$
Sorry, something went wrong.
可捕捉括號
^(?<n>[^【】()]+?)?\:*\s*[【(](?<cc>[^【】()]+?)[】)]*$
可捕捉歌詞彈幕發送機的彈幕,可捕捉格式:
^(?<n>[^【】]+?)?\:?\s*【(?<cc>[^【】]+?)(】.?)?$
更新 22:15 - 1/19-2021: 修復會吞掉最後一個字的問題
根据我的DD经验,直播间的文本大致可能出现:
除去第一个是普通弹幕之外,其他的都是可能的同传文本。 所以我的正则是: ^(?<n>[^【】]+?)?\:*\s*([【】]+?)(?<cc>[^【】]*)(】*)(.*)$
^(?<n>[^【】]+?)?\:*\s*([【】]+?)(?<cc>[^【】]*)(】*)(.*)$
应该能把这些情况覆盖到。但是由于宽容度增加了,有可能出现意外的情况(虽然现在还没碰到)。
No branches or pull requests
这是我目前使用的
有其他更好的可以在下方提出。
The text was updated successfully, but these errors were encountered: