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.
1xxx captures x 2xxx captures xx 3xxx captures xxx
この単純なパターンがうまくいくかもしれないと思いました:
(\d)(.{\1})
しかし、いいえ。
これは Perl では簡単ですが、私は Julia で PCRE を使用しています。これは、その場で式を変更するコードを埋め込むのが難しいことを意味します。