Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Rust Programming Tutorial #35 – Regular Expressions (Regex)

16.5K views on YouTube

dcode 42 tutorials here

Through the inclusion of the ‘regex’ crate, you are able to use regular expressions quite easily in Rust.

In this video I take you through two examples of testing whether or not a match has been found and also getting the actual matched text of the respective match.

For your reference:
https://doc.rust-lang.org/regex/regex/index.html

If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!