In Eclipse, how do I replace a character by a new line?

Solution 1:

Check box 'Regular Expressions' and use '\R' in the 'Replace with' box

It's a new feature introduced with Eclipse 3.4, See What's New in 3.4

Solution 2:

Check box 'Regular Expressions' and use '\n' in the 'Replace with' box

Solution 3:

Like the others said, just use regular expression, but instead of just \r, put \r\n