Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Searching by Multiple Strings in Visual Studio

Posted on 2009-07-02
3
Medium Priority
?
194 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 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

886 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