Solved

Notepad++ wildcard replace

Posted on 2013-06-27
5
5,804 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
Comment Utility
Try this one:

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

Expert Comment

by:Julian Hansen
Comment Utility
Search: (ak\d\d\d\d)
Replace: (\1)
0
 
LVL 51

Expert Comment

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

Author Closing Comment

by:jdclaw
Comment Utility
worked perfectly!
0
 
LVL 51

Expert Comment

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
RegEx Help 18 325
Lowest common IP of a range of IPs 6 287
small programing exercises 5 79
Math between Excel and approximations 15 102
This algorithm (in C#) will resize any image down to a given size while maintaining the original aspect ratio. The maximum width and max height are both optional but if neither are given, the original image is returned. This example is designed t…
Article by: Nadia
Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

11 Experts available now in Live!

Get 1:1 Help Now