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

  • SEARCH
  • Home
  • 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 6552533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:28:14+00:00 2026-05-25T12:28:14+00:00

We have a large solution with many projects in it, and throughout the project

  • 0

We have a large solution with many projects in it, and throughout the project in forms, messages, etc we have a reference to a company name. For years this company name has been the same, so it wasn’t planned for it to change, but now it has.

The application is specific to one state in the US, so localizations/string resource files were never considered or used.

A quick Find All instances of the word pulled up 1309 lines, but we only need to change lines that actually end up being displayed to the user (button text, message text, etc).

Code can be refactored later to make it more readable when we have time to ensure nothing breaks, but for time being we’re attempting to find all visible instances and replace them.

Is there any way to easily find these “instances”? Perhaps a type of Regex that can be used in the Find All functionality in Visual Studio to only pull out the word when it’s wrapped inside quotes?

Before I go down the rabbit hole of trying to make my job easier and spending far more time than it would have taken to just go line by line, figured I would see if anyone has done something like this before and has a solution.

  • 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-05-25T12:28:15+00:00Added an answer on May 25, 2026 at 12:28 pm

    You can give this a try. (I hope your code is under source control!)

    Foobar{[^"]*"([^"]*"[^"]*")*[^"]*}$
    

    And replace with

    NewFoobar\1
    

    Explanation

    Foobar the name you are searching for

    [^"]*" a workaround for the missing non greedy modifier. [^"] means match anything but " that means this matches anything till the first ".

    ([^"]*"[^"]*")* To ensure that you are matching only inside quotes. This ensures that there are only complete sets of quotes following.

    [^"]* ensures that there is no quote anymore till the end of the line $

    {} the curly braces buts all this stuff following your companies name into a capturing group, you can refer to it using \1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large solution containing many C# projects. When I open the solution
We have a large solution with many projects. Some of the projects were outsourced,
I have a large project made of many C++ and C# projects, and a
I have a large solution containing many projects. Due to the size and number
I have several projects and a website in a large asp.net solution. In some
I have a large c# solution file (~100 projects), and I am trying to
We have a large solution comprising of many different libraries. We have just migrated
I have a number of solutions with a large number of projects in them.
How many projects in a single solution is acceptable? And for those apps that
I have a large statement: SELECT a.user_id, a.user_name, s.name, s.value, d.default FROM accounts a,

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.