Will
Will

Reputation: 8641

Sublime text find and replace with special characters

I suck at regular expressions and what to do a simple find and replace of '}' to '} /n' notepad++ can recongise what I'm after as it has the 3 options of normal find and replace, special chars and full regex. I however only ever used to option two. How can I enable special characters in my search using sublime text 2.

Cheers

Upvotes: 1

Views: 5437

Answers (2)

Michael W
Michael W

Reputation: 3555

Joe,

In sublime you can use find & replace. Drag the replace panel large enough and use cmd + enter to go to a new line.

enter image description here

Hit replace all:

enter image description here

And thats it your sorted chap

Upvotes: 2

Niels
Niels

Reputation: 49919

If you want to replace } within notepad++ with } \n you can use the following rules:

  1. find: }
  2. Replace with: } \n
  3. Searchmethod: Extended (\n, \e...)
  4. Press replace all

Upvotes: 0

Related Questions