{"id":3713,"date":"2010-11-18T17:11:42","date_gmt":"2010-11-18T17:11:42","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vcblog\/2010\/11\/18\/regular-expressions-video-introduction-to-the-stl-part-8\/"},"modified":"2019-02-18T18:45:25","modified_gmt":"2019-02-18T18:45:25","slug":"regular-expressions-video-introduction-to-the-stl-part-8","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/regular-expressions-video-introduction-to-the-stl-part-8\/","title":{"rendered":"Regular Expressions &#8211; Video Introduction to the STL, Part 8"},"content":{"rendered":"<p><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">C++0x&#8217;s &lt;regex&gt; header combines Perl&#8217;s regular expressions with C++&#8217;s templates and iterators.&nbsp; The result, like the rest of the STL, is insanely powerful but potentially overwhelming at first sight.&nbsp; It&#8217;s actually easy to use, and much easier than writing string processing code by hand.&nbsp; I demonstrate how to start using &lt;regex&gt; in <a href=\"https:\/\/channel9.msdn.com\/Shows\/Going+Deep\/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-8-of-n\">Part 8<\/a> of my video lecture series introducing the Standard Template Library.<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">Previous parts: <\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\"><a href=\"https:\/\/channel9.msdn.com\/shows\/Going+Deep\/C9-Lectures-Introduction-to-STL-with-Stephan-T-Lavavej\/\">Part 1<\/a> (sequence containers)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\"><a href=\"https:\/\/channel9.msdn.com\/shows\/Going+Deep\/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-2-of-n\/\">Part 2<\/a> (associative containers)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\"><a href=\"https:\/\/channel9.msdn.com\/shows\/Going+Deep\/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-3-of-n\/\">Part 3<\/a> (smart pointers)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\"><a href=\"https:\/\/channel9.msdn.com\/shows\/Going+Deep\/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-4-of-n\/\">Part 4<\/a> (Nurikabe solver) &#8211; see Wikipedia&#8217;s <a href=\"http:\/\/en.wikipedia.org\/wiki\/Nurikabe\">article<\/a> and my <a href=\"http:\/\/cid-e66e02dc83efb165.office.live.com\/browse.aspx\/nurikabe\">updated source code<\/a><\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\"><a href=\"https:\/\/channel9.msdn.com\/shows\/Going+Deep\/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-5-of-n\/\">Part 5<\/a> (Nurikabe solver, continued)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\"><a href=\"https:\/\/channel9.msdn.com\/Shows\/Going+Deep\/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-6-of-n\">Part 6<\/a> (algorithms and functors)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\"><a href=\"https:\/\/channel9.msdn.com\/Shows\/Going+Deep\/C9-Lectures-Stephan-T-Lavavej-Standard-Template-Library-STL-7-of-n\">Part 7<\/a> (algorithms and functors, continued)<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">Attached to this blog post are the slides that I mentioned in the video, which contain an overview of the Perl\/JavaScript\/ECMAScript regular expression grammar used by C++, as well as many examples.<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">&nbsp;<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">Stephan T. Lavavej<\/span><\/p>\n<p class=\"MsoNormal\" style=\"margin: 0in 0in 0pt\"><span style=\"font-family: 'Verdana','sans-serif';font-size: 12pt\">Visual C++ Libraries Developer<\/span><\/p>\n<p><a href=\"https:\/\/msdnshared.blob.core.windows.net\/media\/MSDNBlogsFS\/prod.evol.blogs.msdn.com\/CommunityServer.Components.PostAttachments\/00\/10\/09\/35\/97\/regex-1.0.pptx\">regex-1.0.pptx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++0x&#8217;s &lt;regex&gt; header combines Perl&#8217;s regular expressions with C++&#8217;s templates and iterators.&nbsp; The result, like the rest of the STL, is insanely powerful but potentially overwhelming at first sight.&nbsp; It&#8217;s actually easy to use, and much easier than writing string processing code by hand.&nbsp; I demonstrate how to start using &lt;regex&gt; in Part 8 of [&hellip;]<\/p>\n","protected":false},"author":289,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[9,3,32],"class_list":["post-3713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cplusplus","tag-channel-9","tag-dev","tag-stl"],"acf":[],"blog_post_summary":"<p>C++0x&#8217;s &lt;regex&gt; header combines Perl&#8217;s regular expressions with C++&#8217;s templates and iterators.&nbsp; The result, like the rest of the STL, is insanely powerful but potentially overwhelming at first sight.&nbsp; It&#8217;s actually easy to use, and much easier than writing string processing code by hand.&nbsp; I demonstrate how to start using &lt;regex&gt; in Part 8 of [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/3713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/289"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=3713"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/3713\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=3713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=3713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=3713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}