如何在 youtube-dl 的命令行实用程序中形成 REGEX 以忽略播放列表中的某些关键字?
How can I form REGEX in command line utility of youtube-dl to ignore certain keywords from playlist?
如何在 youtube-dl 的命令行实用程序中形成 REGEX 以忽略播放列表中的某些关键字。此外,正则表达式是否与 BASh 和 Java 中的相同?
youtube-dl使用Pythonre库,与Java和bash.
中的正则表达式基本兼容
例如,要在 YouTube 搜索 recipe
时仅匹配标题包含 chicken
或 noodles
的视频,您可以使用
youtube-dl ytsearch20:recipe --match-title '(chicken|noodles)'
如何在 youtube-dl 的命令行实用程序中形成 REGEX 以忽略播放列表中的某些关键字。此外,正则表达式是否与 BASh 和 Java 中的相同?
youtube-dl使用Pythonre库,与Java和bash.
中的正则表达式基本兼容例如,要在 YouTube 搜索 recipe
时仅匹配标题包含 chicken
或 noodles
的视频,您可以使用
youtube-dl ytsearch20:recipe --match-title '(chicken|noodles)'