
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
In Python, the module re provides full support for Perl-like regular expressions in Python. We need to remember that here are many characters, which would have special meaning when they are used in
regular expression. To avoid bugs while dealing with regular expressions, we use raw strings as r'expression'.
Lists the regular expression syntax that is available in Python. Note
that any Regex can be concatenated to form new regular expressions; if X and Y are both regular expressions, then XY is also a regular expression.
Python Regex match() function explained with examples.
Python REGEX match() function coding exercise.
Python Regex search() function explained with examples.
Python Regex group() function explained with examples: named groups and groupdict.
Python regex substitute function.
Python regex split() function explained with examples.
Python regex findall() function explained with examples.
Python regex compile() function explained with examples. Includes learning tasks.
Python REGEX positive and negative lookaheads explained.
Python REGEX positive and negative lookbehinds explained.
Explains how to perform non-greedy matching
In this project we find Opening reading frame or ORF from DNA sequences with the help of Python regex.
In this project we use REGEX to find some values from a HTML file.
In this project we use regex to extract a list of items from a pdf file.
In this project we use BS- BeautifulSoup and REGEX to find some whose last name starts with the letter 'A'.
In this project we use BS- BeautifulSoup and REGEX to find some products by crawling an Amazon.com page.
Get an interactive version of this course for free. Coupon code provided.
BRILLIANT LEARNERS| 3.5 HRS OF PYTHON REGEX VIDEOS | QUIZZES | FIVE STARS ⭐⭐⭐⭐⭐
Python + Regex? Many of you do not find this combination easy, which partly happens because of the Python's obfuscated regex documentation too! In this course, to make your life easy, we have used some real-world examples. The course goals are to: Teach you how to use the Python regular expressions (re) module and relevant functions by running interactive examples; Educate you to deal with projects with real world data examples (e.g., pdf and web scraping, more coming soon!); and Challenge you with learning tasks and quizzes. You will learn:
Regex in Python
History of Regular Expressions
The re Module
How to Import re.search()
First Pattern-Matching Example
Python Regex Metacharacters
Metacharacters Supported by the re Module
Metacharacters
Escaping Metacharacters
Anchors
Quantifiers
Grouping Constructs and Backreferences
Lookahead and Lookbehind Assertions
Miscellaneous Metacharacters
Modified Regular Expression Matching With Flags
Supported Regular Expression Flags
Combining <flags> Arguments in a Function Call
Setting and Clearing Flags Within a Regular Expression
PYTHON NOTEBOOK & PDF COURSE COMPANIONS
We have included the python notebook used in this course. A PDF documentation of the whole course has been added to the first section.
LIVE CLASS SERIES!
Based on your earlier feedback, we are introducing a Zoom live class lecture series on this course through which we will explain different aspects of the Python and REGEX with Data Scraping. Live classes will be delivered through the Scientific Programming School, which is an interactive and advanced e-learning platform for learning scientific coding.
INTERACTIVE PLAYGROUNDS
This course comes with the first-ever online CUDA programming playgrounds. Students purchasing this course will receive free access to the interactive version of this course from the Scientific Programming School (SCIENTIFIC PROGRAMMING IO). Instruction are given in the bonus content section.
This course should be pretty quick and easy to complete. However, it assumes that you have basic Python skills (see the other Python courses on this platform). This course is a core component of the 'Learn Scientific Programming' project.