Pular para o conteúdo principal
Página inicialPythonRegular Expressions in Python

Regular Expressions in Python

Learn about string manipulation and become a master at using regular expressions.

Comece O Curso Gratuitamente
4 Horas15 Videos54 Exercicios
39.009 AprendizesTrophyDeclaração de Realização

Crie sua conta gratuita

GoogleLinkedInFacebook

ou

Ao continuar, você aceita nossos Termos de Uso, nossa Política de Privacidade e que seus dados são armazenados nos EUA.
GroupTreinar 2 ou mais pessoas?Experimente o DataCamp For Business

Amado por alunos de milhares de empresas


Descrição do Curso

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.
Para Empresas

GroupTreinar 2 ou mais pessoas?

Obtenha acesso à biblioteca completa do DataCamp, com relatórios, atribuições, projetos e muito mais centralizados
Experimente O DataCamp for BusinessPara uma solução sob medida , agende uma demonstração.

Nas seguintes faixas

Associate Python Developer

Ir para a trilha

Python Programming Toolbox

Ir para a trilha
  1. 1

    Basic Concepts of String Manipulation

    Grátis

    Start 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.

    Reproduzir Capítulo Agora
    Introduction to string manipulation
    50 xp
    First day!
    100 xp
    Artificial reviews
    100 xp
    Palindromes
    100 xp
    String operations
    50 xp
    Normalizing reviews
    100 xp
    Time to join!
    100 xp
    Split lines or split the line?
    100 xp
    Finding and replacing
    50 xp
    Finding a substring
    100 xp
    Where's the word?
    100 xp
    Replacing negations
    100 xp
  2. 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.

    Reproduzir Capítulo Agora
  3. 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.

    Reproduzir Capítulo Agora
  4. 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.

    Reproduzir Capítulo Agora
Para Empresas

GroupTreinar 2 ou mais pessoas?

Obtenha acesso à biblioteca completa do DataCamp, com relatórios, atribuições, projetos e muito mais centralizados

Nas seguintes faixas

Associate Python Developer

Ir para a trilha

Python Programming Toolbox

Ir para a trilha

Conjuntos De Dados

Movie ReviewsWikipedia Web PageSentiment140

Colaboradores

Collaborator's avatar
Hillary Green-Lerman
Collaborator's avatar
Sara Billen

Pre Requisitos

Intermediate Python
Maria Eugenia Inzaugarat HeadshotMaria Eugenia Inzaugarat

Data Scientist and Artificial Intelligence Consultant

Veja Mais

O que os outros alunos têm a dizer?

Junte-se a mais de 14 milhões de alunos e comece Regular Expressions in Python hoje mesmo!

Crie sua conta gratuita

GoogleLinkedInFacebook

ou

Ao continuar, você aceita nossos Termos de Uso, nossa Política de Privacidade e que seus dados são armazenados nos EUA.