Regex to search for a word in a string in Visual Studio

前端 未结 5 1511
梦毁少年i
梦毁少年i 2021-02-04 04:02

I need to search all of my codebase for \"Url\" and replace it with \"URL\". If I search for Url in Visual Studio I also get all my variables with \"Url\" in it.

Anyone

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 04:30

    If you just quickly want to search for a quoted string you can use the "Use Wildcards" Find Option in Visual Studio.

    For example:

    "*Url*"
    

提交回复
热议问题