?
Solved

Using Notepad++ Version 6.4.5 is there a way to make the first character on each row of data an Open Parenthesis and the last character a Close Parenthesis followed by a comma?

Posted on 2016-09-21
3
Medium Priority
?
195 Views
Last Modified: 2016-09-22
Using Notepad++ Version 6.4.5 is there a way to make the first character of each row of data an "Open Parenthesis" and the last 2 characters of each row a "Close Parenthesis" followed by a comma ?

In other words:

BEFORE

'   ABC Bank', '0180','PAYROLL'

AFTER

('   ABC Bank', '0180','PAYROLL'),
0
Comment
Question by:zimmer9
3 Comments
 
LVL 15

Expert Comment

by:Haris Djulic
ID: 41809729
Hi,

you pres left Ctl + left Alt and then with mouse drag line in front of first character then the cursor will be spread across all lines and then just type "(".

For ")" repeat same procedure
notepad--.PNG
0
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 2000 total points
ID: 41809791
In Find: ^(.*)$
In Replace: \($1\)-

Make sure Regular Expressions is selected and . matches new line is not checked.

HTH,
Dan
0
 
LVL 37

Expert Comment

by:Kimputer
ID: 41810263
Quickest method is from Dan (except for the typo that ends with - instead of ,)
That's because the Column editing as described by Haris is laborious for LONG text files.
1

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
Tech giants such as Amazon and Google have sold Alexa and Echo to such an extent that they have become household names. And soon they are expected to be used by commoners in their homes, ordering takeout, picking out a song, answering trivia questio…
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question