Hi, I’m trying to solve the exercice 8-12 from advanced regular expresions. and couldn’t find the solution.
I did this regular expresión:
test_urls_clean = test_urls.str.extract(r’((?<=[css-])?[w{3}.]?\w+.\w+[.\w+]?\w+)’)
but the css- from the last url didn’t fit at all.
So I went to the answer and checked without the flag re.I to ignore case sensitive and find out that not all of the urls appeare as an example of github.com.
So I don’t understand why is it happening. Ignorecase sensitive shouldn’t be just when all the letters are not lower or uppercase?
Screen Link:
Thanks.