DEV Community

Cover image for Sublime 3: A Quick Tip Using Find and Replace with Regex

Sublime 3: A Quick Tip Using Find and Replace with Regex

James Thomson on April 17, 2019

TL;DR Use (.*?) to match anything in the given context. Use \1 to replace with the matched value. e.g. Find: <use xlink:href="(.*?)”> Repl...
Collapse
 
j_holtslander profile image
Jay Holtslander

This info helped me in that I learned of (.*?) which I didn't know about before.

I was able to do this as a result and it saved the day.

  • Find: <input value="(.*?)”>
  • Replace: <input value="CONSISTENT_VALUE_NOW”>