如何使用正则表达式将像 "--------ab-c" 这样的字符串固定为仅"ab-c"?



我计划使用Regex过滤URL

--------------r5---sn-gpt7dm7l.googlevideo.com

r5---sn-gpb7dm7l.googlevideo.com

类似 -{4,}

a{3,}匹配至少3个连续的a字符。

示例:https://regex101.com/r/lmrmb2/1/

最新更新