{"id":255389,"date":"2015-12-23T11:31:09","date_gmt":"2015-12-23T03:31:09","guid":{"rendered":"http:\/\/blog.zhenglei.net\/?p=255389"},"modified":"2015-12-23T14:53:30","modified_gmt":"2015-12-23T06:53:30","slug":"regular-expression-in-cc","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=255389","title":{"rendered":"Regular Expression in C\/C++"},"content":{"rendered":"<p><strong><a href=\"https:\/\/github.com\/cesanta\/slre\">SLRE<\/a><\/strong>:<br \/>\nSuper Light Regular Expression library<br \/>\nAn ISO C library that implements a subset of Perl regular expression syntax<br \/>\nSimple API<br \/>\nDosen&#8217;t use heap<\/p>\n<p><strong><a href=\"http:\/\/tiny-rex.sourceforge.net\/\">T-Rex<\/a><\/strong><br \/>\nA minimalistic regular expression library written in ANSI C, supports the following POSIX expressions: ?,*,+,^,$,.,[a-b],() plus the perl style greedy closures {n} . It can be conditionally compiled to support 8-bits or 16-bits character strings.<br \/>\nUses heap<\/p>\n<p><strong><a href=\"https:\/\/github.com\/laurikari\/tre\/\">TRE<\/a><\/strong><br \/>\nA lightweight, robust, and efficient POSIX compliant regexp matching library with some exciting features such as approximate (fuzzy) matching.<br \/>\n<strong><a href=\"http:\/\/www.pcre.org\/\">PCRE<\/a><\/strong><br \/>\nPerl Compatible Regular Expressions<br \/>\nheavyish, fully-fledged, Unicode support, industry-standard (used in Apache etc).<\/p>\n<p><strong><a href=\"https:\/\/github.com\/google\/re2\">RE2<\/a><\/strong><br \/>\nC++ library<br \/>\nRE2 is a fast, safe, thread-friendly alternative to backtracking regular expression engines<br \/>\n<strong><a href=\"https:\/\/github.com\/kkos\/oniguruma\">Oniguruma<\/a><\/strong>:<br \/>\nSupport different character encoding<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SLRE: Super Light Regular Expression lib &hellip; <a href=\"https:\/\/blog.zhenglei.net\/?p=255389\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,18],"tags":[266,265,264],"class_list":["post-255389","post","type-post","status-publish","format-standard","hentry","category-linux","category-software-download","tag-pcre","tag-regex","tag-regular"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255389","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255389"}],"version-history":[{"count":5,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255389\/revisions"}],"predecessor-version":[{"id":255394,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/255389\/revisions\/255394"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}