Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Searching by Multiple Strings in Visual Studio

Posted on 2009-07-02
3
Medium Priority
?
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

688 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