Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
106 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 34

Accepted Solution

by:
Dan Craciun earned 500 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 35

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Desktop clocks and date, gone forever? 10 236
cloning computer 13 95
Easy to use inventory management software 7 107
Chrome: How to show the Bookmarks bar? 4 46
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…
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
In this tutorial viewers will learn how to type text that isn't in a straight line by using the Type on a Path tool in Illustrator Open a document in Illustrator: Draw a path for the text to be typed upon. Don't worry about the fill or stroke as the…

829 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