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 ValidationPython Regular ExpressionPython TestingPython ProgrammingPython 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.

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心