Regular expressions have been a part of programming for a long time and, in the context of Rust, found popularity in the form of ripgrep (https://github.com/BurntSushi/ripgrep). ripgrep is a grep variation that searches files for a particular regular expression—and it has been adopted as a major part of VS Code, where it powers the search engine. The reason for this is simple: speed (https://github.com/BurntSushi/ripgrep#quick-examples-comparing-tools).
Rust's regular expression library has been re-implemented, which may be why it outperforms earlier implementations (and because Rust is fast). Let's see how we can leverage regular expressions in our Rust projects.