Solved

Notepad++ wildcard replace

Posted on 2013-06-27
5
6,653 Views
Last Modified: 2013-06-29
I have over 1000 reference markers all starting with ak.  they are all ak with 4 numbers, for example ak3001, ak3002, and so on.  I simply need to search for all ak**** "wildcards" and enclose them in parentheses. ak3001 = (ak3001)
0
Comment
Question by:jdclaw
[X]
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
  • 3
5 Comments
 
LVL 10

Accepted Solution

by:
rjanowsky earned 500 total points
ID: 39283519
Try this one:

Find pattern: (ak....) - Replace pattern: \(\1\)
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39283578
Search: (ak\d\d\d\d)
Replace: (\1)
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39283579
You don't need '\ before the '(' in the replacement string.
0
 

Author Closing Comment

by:jdclaw
ID: 39286106
worked perfectly!
0
 
LVL 57

Expert Comment

by:Julian Hansen
ID: 39286323
Except your question specifically stated that you want to find ak followed by 4 numbers
They are all ak with 4 numbers,
The accepted solution will match any 6 character string with prefix ak i.e.

akabcd
ak!@#%
ak    (followed by 4 spaces)

Maybe it works for you but in the context of others reading this thread it is the wrong answer.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Okay. So what exactly is the problem here? How often have we come across situations where we need to know if two strings are 'similar' but not necessarily the same? I have, plenty of times. Until recently, I thought any functionality like that wo…
One of Google's most recent algorithm changes affecting local searches is entitled "The Pigeon Update." This update has dramatically enhanced search inquires for the keyword "Yelp." Google searches with the word "Yelp" included will now yield Yelp a…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…

707 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