|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "Announcing regex 1.9" |
| 4 | +author: Andrew Gallant |
| 5 | +team: The regex crate team <https://www.rust-lang.org/governance/teams/library#Regex%20crate%20team> |
| 6 | +--- |
| 7 | + |
| 8 | +The regex sub-team is announcing the release of `regex 1.9`. The `regex` crate |
| 9 | +is maintained by the Rust project and is the recommended way to use regular |
| 10 | +expressions in Rust. Its defining characteristic is its guarantee of worst case |
| 11 | +linear time searches with respect to the size of the string being searched. |
| 12 | + |
| 13 | +Releases of the `regex` crate aren't normally announced on this blog, but |
| 14 | +since the majority of its internals have been rewritten in version 1.9, this |
| 15 | +announcement serves to encourage extra scrutiny. If you run into any problems |
| 16 | +or performance regressions, please report them on the [issue tracker] or [ask |
| 17 | +questions on the Discussion forum][discussions]. |
| 18 | + |
| 19 | +Few API additions have been made, but one worth calling out is the |
| 20 | +[`Captures::extract`] method that should make getting capture groups in some |
| 21 | +cases more convenient. Otherwise, the main change folks should see is hopefully |
| 22 | +faster search times. |
| 23 | + |
| 24 | +You can read more in the [CHANGELOG] and in a more in depth blog post on |
| 25 | +[regex crate internals as a library][regex-internals]. |
| 26 | + |
| 27 | +[issue tracker]: https://github.com/rust-lang/regex/issues |
| 28 | +[discussions]: https://github.com/rust-lang/regex/discussions |
| 29 | +[`Captures::extract`]: https://docs.rs/regex/1.*/regex/struct.Captures.html#method.extract |
| 30 | +[CHANGELOG]: https://github.com/rust-lang/regex/blob/master/CHANGELOG.md#190-2023-07-05 |
| 31 | +[regex-internals]: https://blog.burntsushi.net/regex-internals/ |
0 commit comments