Use Python Regular Expressions to Process File Data

提供方
Coursera Project Network
在此指导项目中,您将:

Implement a Python function that matches an email pattern.

Read from a file containing emails using Python and match each line.

Use Python Regular Expressions to replace missing email prefixes in a file.

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

By the end of this project, you will use the python re package to create an application that verifies email form data from a file. Regular expressions are used to search for data patterns. They can be used to validate file or web data, and/or replace data when a match is found. In Python, the regular expression is compiled with a regular expression pattern. Then a string is passed to the regular expression engine where the search for the pattern match takes place. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

  • Email Validation
  • Python Regular Expression
  • Python Testing
  • Python Programming
  • Python File I/O

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Create a Python Regular Expression pattern test.

  2. Create strings to test a simple regular expression.

  3. Implement a Python function that matches an email pattern.

  4. Read from a file containing emails using Python and match each line.

  5. Use Python Regular Expressions to replace missing email prefixes in a file.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心