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.
:value_subvalueに変換したいようなテキストがあります:value[:subvalue]。
:value_subvalue
:value[:subvalue]
Codaに検索と置換のフィールドがあり、正規表現を入力して検索と置換を行うことができます。
これを行う方法はありますか?
あなたはどの言語を言っていないので、これは一般的な答えです:
(:[a-z]+)_([a-z]+)
\1[:\2]
これをJavaで実行している場合、グループrefsは次のように$1なります。$2
$1
$2