Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8475149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:49:02+00:00 2026-06-10T17:49:02+00:00

I am using Visual Studio 2010 with c#. I need to search my codebase

  • 0

I am using Visual Studio 2010 with c#. I need to search my codebase for find all lines of code where two strings are found in the single line of code (the line of code could span multiple lines which c# allows). The two strings are not connected and I don’t know what will be between them. I just want to find all occurances where it finds both strings in the line of code. Is there anyway to do this? Is there another tool outside of Visual Studio that would allow this type of search?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:49:04+00:00Added an answer on June 10, 2026 at 5:49 pm

    You can use regular expressions to search for files within Visual Studio – no need for external tools for this (though, of course, you can use grep if you so wish).

    See Using Regular Expressions in Visual Studio – the syntax is somewhat esoteric in that it doesn’t conform to most regular expression dialects currently in use (it is different from the .NET one for sure).

    Something like:

    string1.+string2
    

    Should work. If you need this in either order, try:

    string1.+string2|string2.+string1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

note: First of all i am using visual studio 2010. Usually i need dll
Using C# .net 4.0 and visual studio 2010. I need to update a table
I am using Entity Framework, C# 4.0 and Visual Studio 2010. I need to
All: We are using Visual Studio 2010, and we have recently upgraded our workstations
Good Day All, I’m new to programming. I’m using Visual Studio 2010. I’m taking
Good Day All, I’m new to programming. I’m using Visual Studio 2010. I’m taking
Using Visual Studio 2010 How can I enumerate all resources within in a specific
I need to create a winform in Visual Studio 2010 using C# that searches
I am using Visual Studio 2010 Ultimate. I want to find out which methods
I am developing Windows code in C using Visual Studio 2010. I am working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.