Solved

Searching by Multiple Strings in Visual Studio

Posted on 2009-07-02
3
175 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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 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

20 Experts available now in Live!

Get 1:1 Help Now