Python regex Hands-on | re.match | re.search | re.findall | re.sub | re.split

preview_player
Показать описание
Video is all about Python regular widely used string match criteria with hands-on
Рекомендации по теме
Комментарии
Автор

best video i've seen so far explaining about all the regex methods
thank you

overthinker
Автор

@ 3:40 what is the difference between
import re
and
import regex as re ???

This is not working for me, could you explain to me why?

Pasting the tried execution below:
>>> import re
>>> str1 = 'aBcD'
>>> print(re.findall(r'\w\w', str1))
['aB', 'cD']
>>> import regex as re
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'regex'
>>>
Note: I am using Python 3.8.2 version

nikhilavemuri