Notepad++ is an awesome text editing tool, it can accept regex to process the text data.
If the data is in a “.csv” format or comma separated values
which is basically just a text file that can either be opened using a text editor,
excel or even word. Notepad++ can process the contents of the file using regex.
Example if the data has multiple rows or lines, and what is needed
is to convert the whole lines of data into a single line. Notepad++ can easily
do it using regex.
However, if the data is on a single line and it needs to be
converted into multiple lines or rows then regex can also be used for this
case.
Here’s an example on how to convert multiple rows or lines
into a single line.
Example data:
Multiple rows, just a sample data.
Press Ctrl+H, and on "Find what" type: [\r\n]+ and on "Replace with" type with: ,(white space) --white space is needed if need to have a space in between the data.
See image below, "Regular Expression" must be selected and click "Replace All" once done.
To do the other way around, or single column to multiple rows then do this method.
On "Find What", type: \r\n and on "Replace With" type: ,
That's it, Notepad++ and Regex works hand in hand and does wonders. It saves time and make life easier.
Cheers. Till next time.
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
https://play.google.com/store/apps/details?id=chrisjoms.myexcelapplicationguide
Heaven's Dew Fall Prayer app for Android :
https://play.google.com/store/apps/details?id=soulrefresh.beautiful.prayer
Catholic Rosary Guide for Android:
Pray the Rosary every day, countless blessings will be showered upon your life if you recite the Rosary faithfully.
https://play.google.com/store/apps/details?id=com.myrosaryapp
Divine Mercy Chaplet Guide (A Powerful prayer) BFF = Be Filled Faith:
https://play.google.com/store/apps/details?id=com.dmercyapp
Excellent content ,Thanks for sharing this .,
ReplyDeleteCSPO certification