{"id":796,"date":"2011-02-28T22:17:17","date_gmt":"2011-03-01T03:17:17","guid":{"rendered":"http:\/\/www.jaimerios.com\/?p=796"},"modified":"2011-02-28T22:17:17","modified_gmt":"2011-03-01T03:17:17","slug":"using-regular-expressions-with-visual-studio","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=796","title":{"rendered":"Using regular expressions with Visual Studio"},"content":{"rendered":"<p>Today, I began using regular expressions to change a whole bunch of code. However, what I learned from using RegEx in TextMate was not the same as in Visual Studio.<\/p>\n<p>So, for example, the parenthesis around regular expressions to indicate a <a href=\"http:\/\/www.regular-expressions.info\/brackets.html\" target=\"_blank\" rel=\"noopener\">backreference<\/a> in TextMate:<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;<code>(\\w+)<\/code><br \/>\nis represented by curly braces in VS:<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;<code>{\\w+}<\/code><\/p>\n<p>And to get the backreference in TextMate, you would use the $:<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;<code>$1<\/code><br \/>\nbut in VS, you would use a backslash:<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;<code>\\1<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I began using regular expressions to change a whole bunch of code. However, what I learned from using RegEx in TextMate was not the same as in Visual Studio. So, for example, the parenthesis around regular expressions to indicate a backreference in TextMate: &nbsp;&nbsp;&nbsp;&nbsp;(\\w+) is represented by curly braces in VS: &nbsp;&nbsp;&nbsp;&nbsp;{\\w+} And to &#8230; <a title=\"Using regular expressions with Visual Studio\" class=\"read-more\" href=\"https:\/\/jaimerios.com\/?p=796\" aria-label=\"Read more about Using regular expressions with Visual Studio\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[381,480],"class_list":["post-796","post","type-post","status-publish","format-standard","hentry","category-coding","tag-regex","tag-visual-studio"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=796"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/796\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}