LoginSignup
0
0

More than 1 year has passed since last update.

VSCodeの置換時に検索結果を使用する方法

Last updated at Posted at 2022-07-29

目的

以下のようにblueの前にlightを追加して、lightblue等に置換したい。

置換前

<font color="blue">text</font>
<font color="coral">text</font>
<font color="green">text</font>

text
text
text

置換後

<font color="lightblue">text</font>
<font color="lightcoral">text</font>
<font color="lightgreen">text</font>

text
text
text

方法

  1. "正規表現を使用する"を有効にする

  2. 検索欄に以下を入力する
    (?<=color=").*?(?=")

  3. 置換欄に以下を入力する
    light$0

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0