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.
以下のようなi18nプロジェクトの正規表現を使用して引数の数をカウントする必要があります
new Regex("\\{.*?\\}").findAllIn("{1},{2},{3} '{'4'}'").length
4 ではなく 3 を返す必要があります。誰かが私の正規表現を手伝ってくれますか?
引数に数字のみを含めることができる場合は、パターンを次のパターンに置き換えます。
\\{\\d+\\}