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

Notepad++ wildcard replace

Posted on 2013-06-27
5
6,248 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
  • 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 55

Expert Comment

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

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 55

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Iteration: Iteration is repetition of a process. A student who goes to school repeats the process of going to school everyday until graduation. We go to grocery store at least once or twice a month to buy products. We repeat this process every mont…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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…

808 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