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*)'
このためのハッシュタグ存在チェックの最小数を設定したいと思います。= 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,}