Regular Expression in Python

Pubblicato il: 30 dicembre 2016
sul canale di: 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


In questa pagina del sito puoi guardare il video online Regular Expression in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Analytics Fun 30 dicembre 2016, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 526 volte e gli è piaciuto 2 spettatori. Buona visione!