Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lydonchandra/2963417 to your computer and use it in GitHub Desktop.
Save lydonchandra/2963417 to your computer and use it in GitHub Desktop.
WebStorm Search and Replace newline with backslash and newline
WebStorm Search and Replace newline with backslash and newline
Text to find: \n
Replace with: \\\\\n
Regex on.
Results:
var xml = '<node1>\
<node2></node2>\
</node1>';
Input:
var xml = '<node1>
<node2></node2>
</node1>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment