Way to do do search/replace adding linebreaks? Chez Whorton Created February 09, 2012 21:02 Is there a way to use the RubyMine editor to replace all commas with actual line breaks?
Hi Chez,
Try this (as far as I understood your request):
Hit "Replace" or "Replace All"
Yup, that did it. Thank you.
That's not a great solution when the search string is complicated and has lots of things that would be interpreted as part of a regular expression.
What I do for complicated strings:
1. I'll use a normal search and replace to remove what I'm looking for. I should be left with a bunch of linebreaks with nothing else but white space in those areas.
2. I click the regex option and replace using: \n\s