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.
出力できる正規表現の「使用」カウンターはありますか?
たとえば、次のテキストがあるとします。
(), (), (), ()
正規表現パターンを使用して、各一致の出力にカウントを追加したいと考えています。したがって、この場合、望ましい結果は次のようになります。
(1), (2), (3), (4)
確かに内部カウンターはあるのですが、出力として使えますか?