Mpv脚本autoload.lua中跳过文件名带有特定字符串的文件到底怎么写ignore_patterns规则?

Option ignore_patterns is a comma-separated list of patterns (see 
).
Additionally to the standard lua patterns, you can also escape commas with %,
for example, the option bak%,x%,,another will be resolved as patterns bak,x, and another.
But it does not mean you need to escape all lua patterns twice,
so the option bak%%,%.mp4, will be resolved as two patterns bak%% and %.mp4.

Example configuration would be:

disabled=no
images=no
videos=yes
audio=yes
additional_image_exts=list,of,ext
additional_video_exts=list,of,ext
additional_audio_exts=list,of,ext
ignore_hidden=yes
same_type=yes
directory_mode=recursive
ignore_patterns=^~,^bak-,%.bak$

–]]




原来的注释是这样的,

我加上一条

ignore_patterns=dog.cat
结果不会跳过

文档读起来太累了,AI也搞不清楚

有没有大神能直接告诉我怎么写?

我想跳过文件名带有dog,或者cat的文件,这个ignore_patterns= 到底要怎么写?

dog.cat表示的是一个文件名,开头是dog,然后加一个任意字符,最后加cat结尾…

用逗号分隔

ignore_patterns=.*dog.*,.*cat.*

我觉得如果把整个脚本给ai,让它给出示例,应该不成问题的