{"id":43803,"date":"2014-10-21T07:00:00","date_gmt":"2014-10-21T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2014\/10\/21\/the-great-thing-about-regular-expression-languages-is-that-there-are-so-many-to-choose-from\/"},"modified":"2014-10-21T07:00:00","modified_gmt":"2014-10-21T07:00:00","slug":"the-great-thing-about-regular-expression-languages-is-that-there-are-so-many-to-choose-from","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20141021-00\/?p=43803","title":{"rendered":"The great thing about regular expression languages is that there are so many to choose from!"},"content":{"rendered":"<p>\nBefore you ask a question about regular expressions,\nyou should make sure you and your audience agree on\n<i>which<\/i> regular expression language you are talking about.\n<\/p>\n<p>\nHere is a\n<a HREF=\"http:\/\/web.archive.org\/web\/20130830063653\/http:\/\/www.regular-expressions.info\/refflavors.html\">\nhandy table of which features are supported by\nwhich regular expression language<\/a>.\n<\/p>\n<p>\nYou can use that table to solve this customer&#8217;s problem:\n<\/p>\n<blockquote CLASS=\"q\">\n<p>\nI have a regular expression that works just fine when I test\nit in\n&lang;<i>insert regular expression testing tool, like\n<a HREF=\"http:\/\/gskinner.com\/RegExr\/\">RegExr<\/a>\nor\n<a HREF=\"http:\/\/www.regexplanet.com\/advanced\/java\/index.html\">\nRegexPlanet<\/a><\/i>&rang;,\nbut I can&#8217;t get it to work in real life.\n<\/p>\n<pre>\nC:\\&gt; findstr \/r \/c:\"a(?!.*b)\" file.txt\n<i>(prints no results!)<\/i>\nC:\\&gt;\n<\/pre>\n<p>\nMy goal is to find all lines that contain an <code>a<\/code>\nnot followed anywhere by a <code>b<\/code>.\n<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Before you ask a question about regular expressions, you should make sure you and your audience agree on which regular expression language you are talking about. Here is a handy table of which features are supported by which regular expression language. You can use that table to solve this customer&#8217;s problem: I have a regular [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-43803","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Before you ask a question about regular expressions, you should make sure you and your audience agree on which regular expression language you are talking about. Here is a handy table of which features are supported by which regular expression language. You can use that table to solve this customer&#8217;s problem: I have a regular [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/43803","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=43803"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/43803\/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=43803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=43803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=43803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}