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 8890727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:34:06+00:00 2026-06-14T22:34:06+00:00

Using Quick Replace in Visual Studio 2010, how can I replace all but text

  • 0

Using Quick Replace in Visual Studio 2010, how can I replace all but text surrounded by double quotes. I am not sure if I could use WildCards or Regex to do this. An example is below.

Here is the original code:

TypeByName("bPhone3", "9999");
TypeById("bFirstName", "Don");

and I am wanting to replace the text with something like this:

Type("bPhone3", "9999", Selector.Name);
Type("bFirstName", "Don", Selector.Id);

I am doing this for several hundred changes, so Quick Replace is my only real choice right now. I need to find a way to keep anything in quotes and change the text around it.

  • 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-14T22:34:08+00:00Added an answer on June 14, 2026 at 10:34 pm

    So I was tinkering with Visual Studio’s find and replace options and this is actually possible using RegEx and tagged expressions. I used this and it works for the strings you listed.

    Find What: TypeBy{(.*)}\({"[^"]*"}, {"[^"]*"}\);

    Replace with: Type(\2, \3, Selector.\1);

    Remember to tag ‘use regular expressions’ and you should be golden

    More information on tagged expressions can be found here

    Edit: updated a bit as I noticed you have both name and ID, may need to make a few other changes depending on other small quirks in what you want to change.

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

Sidebar

Related Questions

I'm currently working on Image stitching using OpenCV 2.3.1 on Visual Studio 2010, but
Quick question about using IQueryable objects. Can I do something like that and if
I've been using vi/vim since '97 for various quick edits and administration tasks, but
In Visual Studio, I'm very curious to know the regular expression to replace: MyLog.LogFatal(Error
Motivation : I often want to paste the results of a quick analysis using
Given a list of potential ID's is there a quick way using a single
Just a quick question about using select() . I'm using select() to read from
Just a quick question: I'm using a lots of tabs in Eclipse and I
Just a quick one: what are peoples thoughts on using Action delegates for public
Quick one. I'm using mod rewrite and have most replacements in place: empty space

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.