{"id":258,"date":"2013-02-18T16:01:19","date_gmt":"2013-02-18T21:01:19","guid":{"rendered":"http:\/\/binaryworld.net\/blogs\/?p=258"},"modified":"2013-08-13T14:43:11","modified_gmt":"2013-08-13T18:43:11","slug":"power-of-regx-searchreplace-in-visual-studio","status":"publish","type":"post","link":"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/","title":{"rendered":"Power of RegX Search\/Replace in Visual Studio"},"content":{"rendered":"<p>I had real good challenge today. What I wanted was replace tons of method and put &#8220;_&#8221; at the end without manually going hundreds of rename.<\/p>\n<p>So I tried power of RegX search\/replace option<\/p>\n<p><a title=\"Regular Expression Search and Replace in VisualStudio 2010\" href=\"http:\/\/msdn.microsoft.com\/query\/dev10.query?appId=Dev10IDEF1&amp;l=EN-US&amp;k=k(VS.REGULAREXPRESSIONBUILDER);k(TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV4.0%22)&amp;rd=true\" target=\"_blank\">Here is full documentation <\/a>about all available options<\/p>\n<p>Open Search and Replace Dialog and then under Find Option Check &#8220;Use&#8221; and Select &#8220;Regular Expression&#8221;<\/p>\n<blockquote><p>Search For: <span style=\"color: #ff0000;\">{.}:Ps:Pe\\s*\\n<\/span><br \/>\nReplace With: <span style=\"color: #ff0000;\">\\1_()\\n<\/span><\/p><\/blockquote>\n<pre>I will explain each part for SEARCH FOR regx<\/pre>\n<pre>{.} mean any character<\/pre>\n<pre>: Ps means opening bracket ( or {<\/pre>\n<pre>: Pe means closing bracket ) or }<\/pre>\n<pre>\\s* means one or more whitespace<\/pre>\n<pre>\\n means new line<\/pre>\n<pre><\/pre>\n<pre>Here is breakdown of REPLACE WITH regx<\/pre>\n<pre>\\1 means anything from first curly bracket referenced in SEARCH FOR expression<\/pre>\n<pre>_ means underscore<\/pre>\n<pre>\\n means new line<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I had real good challenge today. What I wanted was replace tons of method and put &#8220;_&#8221; at the end without manually going hundreds of rename. So I tried power of RegX search\/replace option Here is full documentation about all &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/\"> <span class=\"screen-reader-text\">Power of RegX Search\/Replace in Visual Studio<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,61],"tags":[71],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Power of RegX Search\/Replace in Visual Studio - BinaryWorld Blog<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Power of RegX Search\/Replace in Visual Studio - BinaryWorld Blog\" \/>\r\n<meta property=\"og:description\" content=\"I had real good challenge today. What I wanted was replace tons of method and put &#8220;_&#8221; at the end without manually going hundreds of rename. So I tried power of RegX search\/replace option Here is full documentation about all &hellip; Power of RegX Search\/Replace in Visual Studio Read More &raquo;\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/\" \/>\r\n<meta property=\"og:site_name\" content=\"BinaryWorld Blog\" \/>\r\n<meta property=\"article:published_time\" content=\"2013-02-18T21:01:19+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2013-08-13T18:43:11+00:00\" \/>\r\n<meta name=\"author\" content=\"Binary World\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Binary World\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/\",\"url\":\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/\",\"name\":\"Power of RegX Search\/Replace in Visual Studio - BinaryWorld Blog\",\"isPartOf\":{\"@id\":\"https:\/\/binaryworld.net\/blogs\/#website\"},\"datePublished\":\"2013-02-18T21:01:19+00:00\",\"dateModified\":\"2013-08-13T18:43:11+00:00\",\"author\":{\"@id\":\"https:\/\/binaryworld.net\/blogs\/#\/schema\/person\/77cf0a9a512dd22bff93c6a1b6374fe0\"},\"breadcrumb\":{\"@id\":\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/binaryworld.net\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Power of RegX Search\/Replace in Visual Studio\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/binaryworld.net\/blogs\/#website\",\"url\":\"https:\/\/binaryworld.net\/blogs\/\",\"name\":\"BinaryWorld Blog\",\"description\":\"Tips and Tutorials for Microsoft SQL Server, SSIS, SSAS, Business Intelligence, C#, .net\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/binaryworld.net\/blogs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/binaryworld.net\/blogs\/#\/schema\/person\/77cf0a9a512dd22bff93c6a1b6374fe0\",\"name\":\"Binary World\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/binaryworld.net\/blogs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eaea47799daa577835eb53e64dfd3e13?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eaea47799daa577835eb53e64dfd3e13?s=96&d=mm&r=g\",\"caption\":\"Binary World\"},\"description\":\"Binary World is a Software Development company located in Atlanta, USA (since 2007). Binary World specialized in Business Intelligence, mobile, cloud computing and .Net Application Development.\",\"url\":\"https:\/\/binaryworld.net\/blogs\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Power of RegX Search\/Replace in Visual Studio - BinaryWorld Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/","og_locale":"en_US","og_type":"article","og_title":"Power of RegX Search\/Replace in Visual Studio - BinaryWorld Blog","og_description":"I had real good challenge today. What I wanted was replace tons of method and put &#8220;_&#8221; at the end without manually going hundreds of rename. So I tried power of RegX search\/replace option Here is full documentation about all &hellip; Power of RegX Search\/Replace in Visual Studio Read More &raquo;","og_url":"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/","og_site_name":"BinaryWorld Blog","article_published_time":"2013-02-18T21:01:19+00:00","article_modified_time":"2013-08-13T18:43:11+00:00","author":"Binary World","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Binary World","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/","url":"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/","name":"Power of RegX Search\/Replace in Visual Studio - BinaryWorld Blog","isPartOf":{"@id":"https:\/\/binaryworld.net\/blogs\/#website"},"datePublished":"2013-02-18T21:01:19+00:00","dateModified":"2013-08-13T18:43:11+00:00","author":{"@id":"https:\/\/binaryworld.net\/blogs\/#\/schema\/person\/77cf0a9a512dd22bff93c6a1b6374fe0"},"breadcrumb":{"@id":"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/binaryworld.net\/blogs\/power-of-regx-searchreplace-in-visual-studio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/binaryworld.net\/blogs\/"},{"@type":"ListItem","position":2,"name":"Power of RegX Search\/Replace in Visual Studio"}]},{"@type":"WebSite","@id":"https:\/\/binaryworld.net\/blogs\/#website","url":"https:\/\/binaryworld.net\/blogs\/","name":"BinaryWorld Blog","description":"Tips and Tutorials for Microsoft SQL Server, SSIS, SSAS, Business Intelligence, C#, .net","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/binaryworld.net\/blogs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/binaryworld.net\/blogs\/#\/schema\/person\/77cf0a9a512dd22bff93c6a1b6374fe0","name":"Binary World","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/binaryworld.net\/blogs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eaea47799daa577835eb53e64dfd3e13?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eaea47799daa577835eb53e64dfd3e13?s=96&d=mm&r=g","caption":"Binary World"},"description":"Binary World is a Software Development company located in Atlanta, USA (since 2007). Binary World specialized in Business Intelligence, mobile, cloud computing and .Net Application Development.","url":"https:\/\/binaryworld.net\/blogs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/posts\/258"}],"collection":[{"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":0,"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"wp:attachment":[{"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/binaryworld.net\/blogs\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}