Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个正则表达式,它仅在文本块中有 >15 个标签时才匹配。
我用来匹配主题标签的正则表达式是 -
r'(\B#\w*[a-zA-Z]+\w*)'
我想为此设置最小数量的 Hashtags 存在检查,其中 min。= 15。
如果(\B#\w*[a-zA-Z]+\w*)匹配单个主题标签,则(\B#\w*[a-zA-Z]+\w*){15,}如果有 15 个或更多主题标签,则应该匹配。
(\B#\w*[a-zA-Z]+\w*)
(\B#\w*[a-zA-Z]+\w*){15,}