Solved

Searching by Multiple Strings in Visual Studio

Posted on 2009-07-02
3
176 Views
Last Modified: 2013-11-26
Experts,

You know the way you can search in Google with sub-strings like "Hard Rock" "Aerosmith"?  Is there a way to do a search like that in Visual Studio?

BTW, is there a name for that kind of search?
0
Comment
Question by:NigelRocks
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 24763414
I'm not sure what you mean by "in Visual Studio." Do you mean using Find/Replace within the editor, searching a data structure you have during runtime, or are you querying a database via .NET?
0
 
LVL 1

Author Comment

by:NigelRocks
ID: 24763584
Just using the "find".  I have stored procedure calls that start with "spDAL_" and some of them have "HRA" in the name, but not always after "DAL_" like they should.  I want to find any string with "spDAL_" and "HRA" anywhere in it.
0
 
LVL 8

Accepted Solution

by:
dericstone earned 500 total points
ID: 24765745
You could search with regular expressions. You'll find a checkbox for that on the find dialog. A search string something like this should work
  spDAL_[a-zA-Z0-9_]*HRA
or if you want only the procedures with something between DAL_ and HRA, use this
  spDAL_[a-zA-Z0-9_]+HRA
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

776 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