Search code examples
regexsublimetext2find-replace

In Sublime Text, how do I find and replace, for example </strong></em> with </strong></em> followed by a carriage return?


enter image description here

I'm trying to add a carriage return after a combination of closing tags throughout my document in Sublime text. How do I either non-manually put multiple cursors after every instance of a search term OR Replace a series of search terms with the same search terms, but followed by a carriage return?

For example with (carriage return).


Solution

    1. Make sure the "Regular Expression" toggle is enabled on the left side of the find replace section
    2. Find what: "</strong></em>"
    3. Replace with: "</strong></em>\n"

    enter image description here