Regular Expression in Python

Publié le: 30 décembre 2016
sur la chaîne: Analytics Fun
526
2

Definition and Use:
Regular expression is a sequence of character mainly used to find and replace patterns in a string
They are used in data cleaning, web page scrape, etc

Application:
In Python,we have module “re” that helps with regular expression
“import re”
Function:
1)re.match- find match at start of the string
2)re.search- find match anywhere in the string
3)re.findall-find all the occurrence of the pattern in the string
4)re.split-splits the string and returns a splitted array
5)re.sub - replace the pattern with the given replacement string


Sur cette page du site, vous pouvez voir la vidéo en ligne Regular Expression in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Analytics Fun 30 décembre 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 526 fois et il a aimé 2 téléspectateurs. Bon visionnage!