The dot regex . matches all characters except the newline character. For example, the regular expression ‘…’ matches strings ‘hey’ and ‘tom’. But it does not match the string ‘yo\ntom’ which contains the newline character ‘\n’.
Read the full article at:
~~~
Become a better coder! Download the 5x Python Cheat Sheet Course (PDF). It’s free!
*** Click: ***
Cheating in Python? Of course!
See you soon -- it’s fun!
~~~
Experts in their fields read more books! Become a Python expert:
... [Book] Coffee Break Python --
... [Book] Coffee Break NumPy --
And become a Python master the fun way!
~~~
Start earning money by creating your own Python coding business (free webinar):