|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>Announcing regex 1.9 | Rust Blog</title> |
| 6 | + <meta name="viewport" content="width=device-width,initial-scale=1.0"> |
| 7 | +<meta name="description" content="Empowering everyone to build reliable and efficient software."> |
| 8 | + <!-- Twitter card --> |
| 9 | + <meta name="twitter:card" content="summary"> |
| 10 | + <meta name="twitter:site" content="@rustlang"> |
| 11 | + <meta name="twitter:creator" content="@rustlang"> |
| 12 | + <meta name="twitter:title" content="Announcing regex 1.9 | Rust Blog"> |
| 13 | + <meta name="twitter:description" content="Empowering everyone to build reliable and efficient software."> |
| 14 | +<meta name="twitter:image" content="https://www.rust-lang.org/static/images/rust-social.jpg"> |
| 15 | + |
| 16 | +<!-- Facebook OpenGraph --> |
| 17 | +<meta property="og:title" content="Announcing regex 1.9 | Rust Blog" /> |
| 18 | +<meta property="og:description" content="Empowering everyone to build reliable and efficient software."> |
| 19 | +<meta property="og:image" content="https://www.rust-lang.org/static/images/rust-social-wide.jpg" /> |
| 20 | +<meta property="og:type" content="website" /> |
| 21 | +<meta property="og:locale" content="en_US" /> |
| 22 | + |
| 23 | +<!-- styles --> |
| 24 | +<link rel="stylesheet" href="../../../styles/vendor.css"/> |
| 25 | +<link rel="stylesheet" href="../../../styles/fonts.css"/> |
| 26 | +<link rel="stylesheet" href="../../../styles/app.css"/> |
| 27 | +<link rel="stylesheet" href="../../../styles/highlight.css"/> |
| 28 | + |
| 29 | +<!-- favicon --> |
| 30 | +<link rel="apple-touch-icon" sizes="180x180" href="../../../images/apple-touch-icon.png"> |
| 31 | +<link rel="icon" type="image/png" sizes="16x16" href="../../../images/favicon-16x16.png"> |
| 32 | +<link rel="icon" type="image/png" sizes="32x32" href="../../../images/favicon-32x32.png"> |
| 33 | +<link rel="icon" type="image/svg+xml" href="../../../images/favicon.svg"> |
| 34 | +<link rel="manifest" href="../../../images/site.webmanifest"> |
| 35 | +<link rel="mask-icon" href="../../../images/safari-pinned-tab.svg" color="#5bbad5"> |
| 36 | +<meta name="msapplication-TileColor" content="#00aba9"> |
| 37 | +<meta name="theme-color" content="#ffffff"> |
| 38 | + |
| 39 | + <!-- atom --> |
| 40 | + <link type="application/atom+xml" rel="alternate" href="https://blog.rust-lang.org/feed.xml" title="Rust Blog" /> |
| 41 | + |
| 42 | + </head> |
| 43 | + <body> |
| 44 | + <nav class="flex flex-row justify-center justify-end-l items-center flex-wrap ph2 pl3-ns pr4-ns"> |
| 45 | + <div class="brand flex-auto w-100 w-auto-l self-start tc tl-l"> |
| 46 | + <a href="../../../"> |
| 47 | + <img class="v-mid ml0-l" alt="Rust Logo" src="../../../images/rust-logo-blk.svg"> |
| 48 | + <span class="dib ml1 ml0-l">Rust Blog</span> |
| 49 | + </a> |
| 50 | + </div> |
| 51 | + |
| 52 | + <ul class="nav list w-100 w-auto-l flex flex-none flex-row flex-wrap justify-center justify-end-l items-center pv2 ph0 ph4-ns"> |
| 53 | + <li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org">Rust</a></li> |
| 54 | + <li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org/tools/install">Install</a></li> |
| 55 | + <li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org/learn">Learn</a></li> |
| 56 | + <li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org/tools">Tools</a></li> |
| 57 | + <li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org/governance">Governance</a></li> |
| 58 | + <li class="tc pv2 ph2 ph4-ns flex-20-s"><a href="https://www.rust-lang.org/community">Community</a></li> |
| 59 | + </ul> |
| 60 | +</nav> |
| 61 | + |
| 62 | +<section id="Announcing regex 1.9" class="white"> |
| 63 | + <div class="w-100 mw-none ph3 mw8-m mw8-l center f3"> |
| 64 | + <header> |
| 65 | + <h2>Announcing regex 1.9</h2> |
| 66 | + <div class="highlight mt2 mb3"></div> |
| 67 | + </header> |
| 68 | + |
| 69 | + <div class="publish-date-author">July 5, 2023 · Andrew Gallant |
| 70 | + on behalf of <a href="https://www.rust-lang.org/governance/teams/library#Regex%20crate%20team">The regex crate team</a> |
| 71 | + </div> |
| 72 | + |
| 73 | + <div class="post"> |
| 74 | + <p>The regex sub-team is announcing the release of <code>regex 1.9</code>. The <code>regex</code> crate |
| 75 | +is maintained by the Rust project and is the recommended way to use regular |
| 76 | +expressions in Rust. Its defining characteristic is its guarantee of worst case |
| 77 | +linear time searches with respect to the size of the string being searched.</p> |
| 78 | +<p>Releases of the <code>regex</code> crate aren't normally announced on this blog, but |
| 79 | +since the majority of its internals have been rewritten in version 1.9, this |
| 80 | +announcement serves to encourage extra scrutiny. If you run into any problems |
| 81 | +or performance regressions, please report them on the <a href="https://github.com/rust-lang/regex/issues">issue tracker</a> or <a href="https://github.com/rust-lang/regex/discussions">ask |
| 82 | +questions on the Discussion forum</a>.</p> |
| 83 | +<p>Few API additions have been made, but one worth calling out is the |
| 84 | +<a href="https://docs.rs/regex/1.*/regex/struct.Captures.html#method.extract"><code>Captures::extract</code></a> method that should make getting capture groups in some |
| 85 | +cases more convenient. Otherwise, the main change folks should see is hopefully |
| 86 | +faster search times.</p> |
| 87 | +<p>You can read more in the <a href="https://github.com/rust-lang/regex/blob/master/CHANGELOG.md#190-2023-07-05">CHANGELOG</a> and in a more in depth blog post on |
| 88 | +<a href="https://blog.burntsushi.net/regex-internals/">regex crate internals as a library</a>.</p> |
| 89 | + |
| 90 | + </div> |
| 91 | + </div> |
| 92 | +</section> |
| 93 | + |
| 94 | + <footer> |
| 95 | + <div class="w-100 mw-none ph3 mw8-m mw9-l center f3"> |
| 96 | + <div class="row"> |
| 97 | + <div class="four columns mt3 mt0-l" id="get-help"> |
| 98 | + <h4>Get help!</h4> |
| 99 | + <ul> |
| 100 | + <li><a href="https://doc.rust-lang.org" target="_blank" rel="noopener">Documentation</a></li> |
| 101 | + <li><a href="mailto:core-team@rust-lang.org">Contact the Rust Team</a></li> |
| 102 | + </ul> |
| 103 | + </div> |
| 104 | + <div class="four columns mt3 mt0-l"> |
| 105 | + <h4>Terms and policies</h4> |
| 106 | + <ul> |
| 107 | + <li><a href="https://www.rust-lang.org/policies/code-of-conduct">Code of Conduct</a></li> |
| 108 | + <li><a href="https://www.rust-lang.org/policies/licenses">Licenses</a></li> |
| 109 | + <li><a href="https://www.rust-lang.org/policies/media-guide">Logo Policy and Media Guide</a></li> |
| 110 | + <li><a href="https://www.rust-lang.org/policies/security">Security Disclosures</a></li> |
| 111 | + <li><a href="https://www.rust-lang.org/policies">All Policies</a></li> |
| 112 | + </ul> |
| 113 | + </div> |
| 114 | + <div class="four columns mt3 mt0-l"> |
| 115 | + <h4>Social</h4> |
| 116 | + <div class="flex flex-row flex-wrap"> |
| 117 | + <a href="https://twitter.com/rustlang" target="_blank" rel="noopener" alt="twitter link"><img src="../../../images/twitter.svg" alt="twitter logo" title="Twitter"/></a> |
| 118 | + <a href="https://www.youtube.com/channel/UCaYhcUwRBNscFNUKTjgPFiA" target="_blank" rel="noopener" alt="youtube link"><img style="padding-top: 6px; padding-bottom:6px" src="../../../images/youtube.svg" alt="youtube logo" title="YouTube"/></a> |
| 119 | + <a href="https://discord.gg/rust-lang" target="_blank" rel="noopener" alt="discord link"><img src="../../../images/discord.svg" alt="discord logo" title="Discord"/></a> |
| 120 | + <a href="https://github.com/rust-lang" target="_blank" rel="noopener" alt="github link"><img src="../../../images/github.svg" alt="github logo" title="GitHub"/></a> |
| 121 | + </div> |
| 122 | + <h4 class="mt4 mb3">RSS</h4> |
| 123 | + <ul> |
| 124 | + <li><a href="../../../feed.xml">Main Blog</a></li> |
| 125 | + <li><a href="../../../inside-rust/feed.xml">"Inside Rust" Blog</a></li> |
| 126 | + </ul> |
| 127 | + </div> |
| 128 | + |
| 129 | + </div> |
| 130 | + <div class="attribution"> |
| 131 | + Maintained by the Rust Team. See a typo? |
| 132 | + <a href="https://github.com/rust-lang/blog.rust-lang.org" target="_blank" rel="noopener">Send a fix here</a>! |
| 133 | + </div> |
| 134 | + </div> |
| 135 | +</footer> |
| 136 | + |
| 137 | +<!-- scripts --> |
| 138 | +<script src="../../../scripts/highlight.js"></script> |
| 139 | + |
| 140 | + </body> |
| 141 | +</html> |
0 commit comments