Rust Programming Tutorial #35 - Regular Expressions (Regex)

preview_player
Показать описание
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:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Рекомендации по теме
Комментарии
Автор

hey, loved the video, very useful. I thought I'd also let you know that your reference link in the description is broken (as of posting this comment).

TheMCMaster
Автор

What is the difference between caps.get(0).unwrap().as_str() and &caps[0]? Is one less safe to use, e.g. if there are some errors?
I understand what the unwrap does, but I don't get why &caps[0] achieves the same result.

levil
Автор

He literally saiy, "How is going guys! My name in dumb"

tmahad
Автор

I’ve watched this tutorial series from the beginning and I’m still wondering if there is a huge selection of far less complicated compiled programming languages, why would people prefer rust? What is its advantage? You do make very good tutorials though.

kyleeames
join shbcf.ru