Open mtuktarov opened 4 years ago
Hello! Thank you for the comment.
For task 1 - I expected the regex to work like that because I thought that
006
oktet is equal to 06
and equal to 6
But if we want to exclude such results, the oktet regex will be:
(25[0-5]|2[0-4][0-9]|1?[1-9]?[0-9])
Added commit for the lesson 4 task 1: Lesson 4 task 1 commit
For task 4 - sorry, my bad. Added =
and ?
symbols to the url path regex and added +
symbol to the filename:
(?<!\S)(https?:\/\/)?([\w-]+\.)+[a-z]+(\/[\w.=?-]+)*\/[\w.+-]+\.\w+(?<!\.exe|bin|sh)(?!\S)
Added commit for the lesson 4 task 4: Lesson 4 task 4 commit
Hi I created some tests for the lesson 4 homework and your regexes have minor issues:
Task 1 regex matches data below, however, it should not:
Task 4 Using the input data below
command works this way:
However I expect following: