{"id":37853,"date":"2004-09-16T07:00:00","date_gmt":"2004-09-16T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/09\/16\/what-happens-when-you-specify-regexoptions-ecmascript\/"},"modified":"2004-09-16T07:00:00","modified_gmt":"2004-09-16T07:00:00","slug":"what-happens-when-you-specify-regexoptions-ecmascript","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040916-00\/?p=37853","title":{"rendered":"What happens when you specify RegexOptions.ECMAScript?"},"content":{"rendered":"<p> The <code><a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/cpref\/html\/frlrfsystemtextregularexpressionsregexoptionsclasstopic.asp\">RegexOptions<\/a>.ECMAScript<\/code> flag changes the behavior of .NET regular expressions. One of the changes I had discussed earlier was with respect to <a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/archive\/2004\/03\/09\/86555.aspx\"> matching digits<\/a>. For those who want to know more, <a href=\"http:\/\/msdn.microsoft.com\/library\/en-us\/cpgenref\/html\/gngrfEcmaScriptVsCanonicalMatchingBehavior.asp\"> a summary of the differences is documented in MSDN<\/a> under the devious title &#8220;ECMAScript vs. Canonical Matching Behavior&#8221;. <\/p>\n<p> Apparently some people had trouble finding that page, so I figured I&#8217;d point to it explicitly. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The RegexOptions.ECMAScript flag changes the behavior of .NET regular expressions. One of the changes I had discussed earlier was with respect to matching digits. For those who want to know more, a summary of the differences is documented in MSDN under the devious title &#8220;ECMAScript vs. Canonical Matching Behavior&#8221;. Apparently some people had trouble finding [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-37853","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>The RegexOptions.ECMAScript flag changes the behavior of .NET regular expressions. One of the changes I had discussed earlier was with respect to matching digits. For those who want to know more, a summary of the differences is documented in MSDN under the devious title &#8220;ECMAScript vs. Canonical Matching Behavior&#8221;. Apparently some people had trouble finding [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/37853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=37853"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/37853\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=37853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=37853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=37853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}