filmov
tv
#25. Regular Expressions (regex) in Python | Tutorial

Показать описание
The video discusses regular expressions or regex in Python.
Timeline
(Python 3.7)
00:00 - Welcome
00:13 - Outline of video
00:36 - Open Jupyter Notebook
00:54 - Motivation
01:20 - Data
01:36 - What are Alphanumeric characters?
02:17 - What are Metacharacter?
02:54 - Methods in regex
03:20 - Methods in regex: .match()
05:45 - What is start, end and span of a match?
07:25 - Methods in regex: .search()
08:58 - Comparison between .match() vs. .search()
10:20 - Methods in regex: .findall()
11:10 - Methods in regex: .finditer()
12:54 - Metacharacter
13:58 - Regex using: square brackets: [ ]
15:51 - Regex using: hyphen: -
16:48 - Regex using: backslash: \ (how to escape a Metacharacter?)
19:03 - Regex using: caret: ^
20:20 - Caution using ‘^’: with and without [ ]
21:40 - Special sequences
22:16 - Regex: Find all numbers: \d
23:14 - Regex: Find all except numbers: \D
23:58 - Regex: Find all whitespaces: \s
24:40 - Regex: Find all except whitespaces: \S
25:33 - ————————— Correction: Incorrect spelling. Here, I mean to say ‘carriage return’
26:53 - Regex: Find all alphanumeric characters: \w
27:24 - Regex: Find all except alphanumeric characters: \W
26:53 - Regex: Find match at beginning or end of a string: \b
27:47 - Regex: Find matches except beginning or end of string: \B
30:20 - Metacharacter for repeat match: *
32:00 - Metacharacter for repeat match: +
32:34 - Metacharacter for repeat match: ?
33:22 - Metacharacter for repeat match: {m,n}
34:42 - Using ‘$’ to find match at the end of a string
35:50 - Using Group
37:07 - Use cases
37:43 - Split string using whitespaces: .split()
39:07 - Replace string using .sub()
39:40 - Replace string using .subn()
40:13 - Raw string
42:01 - Ending notes
Timeline
(Python 3.7)
00:00 - Welcome
00:13 - Outline of video
00:36 - Open Jupyter Notebook
00:54 - Motivation
01:20 - Data
01:36 - What are Alphanumeric characters?
02:17 - What are Metacharacter?
02:54 - Methods in regex
03:20 - Methods in regex: .match()
05:45 - What is start, end and span of a match?
07:25 - Methods in regex: .search()
08:58 - Comparison between .match() vs. .search()
10:20 - Methods in regex: .findall()
11:10 - Methods in regex: .finditer()
12:54 - Metacharacter
13:58 - Regex using: square brackets: [ ]
15:51 - Regex using: hyphen: -
16:48 - Regex using: backslash: \ (how to escape a Metacharacter?)
19:03 - Regex using: caret: ^
20:20 - Caution using ‘^’: with and without [ ]
21:40 - Special sequences
22:16 - Regex: Find all numbers: \d
23:14 - Regex: Find all except numbers: \D
23:58 - Regex: Find all whitespaces: \s
24:40 - Regex: Find all except whitespaces: \S
25:33 - ————————— Correction: Incorrect spelling. Here, I mean to say ‘carriage return’
26:53 - Regex: Find all alphanumeric characters: \w
27:24 - Regex: Find all except alphanumeric characters: \W
26:53 - Regex: Find match at beginning or end of a string: \b
27:47 - Regex: Find matches except beginning or end of string: \B
30:20 - Metacharacter for repeat match: *
32:00 - Metacharacter for repeat match: +
32:34 - Metacharacter for repeat match: ?
33:22 - Metacharacter for repeat match: {m,n}
34:42 - Using ‘$’ to find match at the end of a string
35:50 - Using Group
37:07 - Use cases
37:43 - Split string using whitespaces: .split()
39:07 - Replace string using .sub()
39:40 - Replace string using .subn()
40:13 - Raw string
42:01 - Ending notes
Комментарии