How to replace comma with line break in word

how to replace comma with newline in notepad

How to replace comma with line break in word

Replacing one character, letter or a word with another one is very common thing in learning how to code or a programming language. I have faced this problem of finding and replacing one word with another one many times in my coding career. The find and replace is very important for data entry as well. I learned some of these tricks from my teacher and some from the internet. Here are the most important and very much used find and replace problem. How to replace commas with enter or new line?

Here I am going to show you that how you can replace commas with enters or new lines or replace enters with commas in MS Word. See the image below which shows that there are commas that we want to replace with new lines or enters in Windows.

how to replace comma with newline in notepad

Press CTRL + H to open the find and replace dialog box. Put comma in the first field to find and in the second field put ^P or ^p to replace commas with new lines. Now click replace all button and that is it.

how to replace enter with comma in microsoft word

See the result and you will be amazed with the power of MS Word. Now you can do whatever you want with the data. You can do the inverse of this action very easily as well. Press CTRL + H and put ^p in the first field and put comma or anything you want to spate the records and click replace all to get the desired results.

There are some other very interesting find and replace trick in MS Word. If you want to replace all the digits found in your document you can do this very easily with MS Word. You can replace anything with a TAB Character very easily. MS Word allows you to replace any letter with anything you want. Here are the codes that you can use to perform these simple but very fruitful tasks.

 

  • ^p for new line or Enter
  • ^t or ^9 for TAB character
  • ^# for any digit
  • ^$ for any letter

For more tricks and tips keep on visiting us coding problems with howtocode.pk.

Comments