An introduction and a fast reference for your works.

Regular expressions in Python are a fondamental brick for our data science skills wall. It allows us to select text in a fast and simple way and use it in our daily works.

Imagine you want to select some recurrent text from a huge page of tenses, for example in a sentimental analysis of tweets you would like to select all the people ID, as “@myname” or for example all the hashtags in a particular tweet, as “#datascience or #regex.

In python it is possible trought the “regex” module, it allows…

Luca Pessina

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store