I want to find this string: ```markdown {{< img "/img/image-name.png" "Image Caption" >}} ``` And replace with: ```markdown ![Image Caption](/img/image-name.png) ``` So the regex for finding: ```regex (\{\{<) (img) "(.*?)" "(.*?)" (>\}\}) ``` And the regex for replacing: ```regex ![$4]($3) ``` - `$4` -- will take the 4th group - `$3` -- will take the 3rd group ![VS Code Find and Replace](https://i.imgur.com/MQ91sXf.png) Demo: https://regex101.com/r/eusVXZ/2/