Rust Taskbook Level 3.2

Задание 1

Given an array of strings, output to the console only those strings that start with "http://".

Задание 2

A certain line is given.

rust"1203405"

Find the position of the first zero in the string.

Задание 3

Given a line:

rust"abcdef"

Get the last three characters of this string:

rust"def"
Задание 4

Given an array:

rust[1, 2, 3, 4, 5, 6]

Get the following slice from it:

rust[3, 4, 5]
Задание 5

Given a line:

rustlet txt: &str = "abc def jhi";

Get an array of words from this string:

rust["abc, "def", jhi"}
Задание 6

Given a line:

rust"abc_abc_abc"

Replace all underscores with spaces:

rust"abc abc abc"