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
60 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
Comment Utility
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 34

Accepted Solution

by:
Dan Craciun earned 500 total points
Comment Utility
In Find: ^(.*)$
In Replace: \($1\)-

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

HTH,
Dan
0
 
LVL 35

Expert Comment

by:Kimputer
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
In this tutorial viewers will learn how to use the Pathfinder tool's 4 Shape Modes in Illustrator to create advanced shapes Draw two shapes: A circle and a rectangle: Select both shapes, hold down the Alt key, click and drag to create 4 copies.: Sel…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now