Regular Expressions in Python
Learn about string manipulation and become a master at using regular expressions.
Kurs Kostenlos Starten4 Stunden15 Videos54 Übungen41.440 LernendeLeistungsnachweis
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.Trainierst du 2 oder mehr?
Versuchen DataCamp for BusinessBeliebt bei Lernenden in Tausenden Unternehmen
Kursbeschreibung
As a data scientist, you will encounter many situations where you will need to extract key information from huge corpora of text, clean messy data containing strings, or detect and match patterns to find useful words. All of these situations are part of text mining and are an important step before applying machine learning algorithms. This course will take you through understanding compelling concepts about string manipulation and regular expressions. You will learn how to split strings, join them back together, interpolate them, as well as detect, extract, replace, and match strings using regular expressions. On the journey to master these skills, you will work with datasets containing movie reviews or streamed tweets that can be used to determine opinion, as well as with raw text scraped from the web.
Trainierst du 2 oder mehr?
Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.In den folgenden Tracks
Assoziierter Python-Entwickler
Gehe zu TrackPython Programming Toolbox
Gehe zu Track- 1
Basic Concepts of String Manipulation
KostenlosStart your journey into the regular expression world! From slicing and concatenating, adjusting the case, removing spaces, to finding and replacing strings. You will learn how to master basic operation for string manipulation using a movie review dataset.
- 2
Formatting Strings
Following your journey, you will learn the main approaches that can be used to format or interpolate strings in python using a dataset containing information scraped from the web. You will explore the advantages and disadvantages of using positional formatting, embedding expressing inside string constants, and using the Template class.
- 3
Regular Expressions for Pattern Matching
Time to discover the fundamental concepts of regular expressions! In this key chapter, you will learn to understand the basic concepts of regular expression syntax. Using a real dataset with tweets meant for sentiment analysis, you will learn how to apply pattern matching using normal and special characters, and greedy and lazy quantifiers.
Introduction to regular expressions50 xpAre they bots?100 xpFind the numbers100 xpMatch and split100 xpRepetitions50 xpEverything clean100 xpSome time ago100 xpGetting tokens100 xpRegex metacharacters50 xpFinding files100 xpGive me your email100 xpInvalid password100 xpGreedy vs. non-greedy matching50 xpUnderstanding the difference100 xpGreedy matching100 xpLazy approach100 xp - 4
Advanced Regular Expression Concepts
In the last step of your journey, you will learn more complex methods of pattern matching using parentheses to group strings together or to match the same text as matched previously. Also, you will get an idea of how you can look around expressions.
Capturing groups50 xpTry another name100 xpFlying home100 xpAlternation and non-capturing groups50 xpLove it!100 xpUgh! Not for me!100 xpBackreferences50 xpParsing PDF files100 xpClose the tag, please!100 xpReeepeated characters100 xpLookaround50 xpSurrounding words100 xpFiltering phone numbers100 xpFinishing line50 xp
Trainierst du 2 oder mehr?
Verschaffen Sie Ihrem Team Zugriff auf die vollständige DataCamp-Plattform, einschließlich aller Funktionen.In den folgenden Tracks
Assoziierter Python-Entwickler
Gehe zu TrackPython Programming Toolbox
Gehe zu TrackMaria Eugenia Inzaugarat
Mehr AnzeigenData Scientist and Artificial Intelligence Consultant
Was sagen andere Lernende?
Melden Sie sich an 15 Millionen Lernende und starten Sie Regular Expressions in Python Heute!
Kostenloses Konto erstellen
oder
Durch Klick auf die Schaltfläche akzeptierst du unsere Nutzungsbedingungen, unsere Datenschutzrichtlinie und die Speicherung deiner Daten in den USA.