Solved

Searching by Multiple Strings in Visual Studio

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

Expert Comment

by:käµfm³d 👽
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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.

771 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

12 Experts available now in Live!

Get 1:1 Help Now