Solved

Notepad++ wildcard replace

Posted on 2013-06-27
5
6,394 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 56

Expert Comment

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

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 56

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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

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…
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…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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