mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore(curriculum): remove video from Regular Expressions lectures (#61552)
This commit is contained in:
+1
-7
@@ -1,18 +1,12 @@
|
||||
---
|
||||
id: 6733aad43b3ebff588a26fb5
|
||||
title: What Are Regular Expressions, and What Are Some Common Methods?
|
||||
challengeType: 11
|
||||
videoId: PIsbrPU_eqo
|
||||
challengeType: 19
|
||||
dashedName: what-are-regular-expressions-and-what-are-some-common-methods
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are regular expressions, and what are some common methods?
|
||||
|
||||
Regular expressions, or regex, are a feature supported by many different programming languages.
|
||||
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6733c5ba834ded4bb067e67c
|
||||
title: What Are Some Common Regular Expression Modifiers Used for Searching?
|
||||
challengeType: 11
|
||||
videoId: 0ZGj-WNbB98
|
||||
challengeType: 19
|
||||
dashedName: what-are-some-common-regular-expression-modifiers-used-for-searching
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are some common regular expression modifiers used for searching?
|
||||
|
||||
Modifiers, often referred to as "flags", modify the behavior of a regular expression. Let's recall our example from an earlier lecture:
|
||||
|
||||
```js
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6733c5c549775c4be710237c
|
||||
title: How Can You Match and Replace All Occurrences in a String?
|
||||
challengeType: 11
|
||||
videoId: HyuDs-jVJyw
|
||||
challengeType: 19
|
||||
dashedName: how-can-you-match-and-replace-all-occurrences-in-a-string
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
How can you match or replace all occurrences in a string?
|
||||
|
||||
Let's learn how to match or replace all occurrences of a pattern in a string.
|
||||
|
||||
You have previously learned about the `replace()` and `match()` methods, as well as the global `g` modifier. Now you can combine that knowledge to handle all patterns in a string. Let's recall our original match code:
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6733c5d0048bb74c18431296
|
||||
title: What Are Character Classes, and What Are Some Common Examples?
|
||||
challengeType: 11
|
||||
videoId: lWqPXb--fWA
|
||||
challengeType: 19
|
||||
dashedName: what-are-character-classes-and-what-are-some-common-examples
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are character classes, and what are some common examples?
|
||||
|
||||
Let's learn about character classes in regular expressions, including some common examples.
|
||||
|
||||
Character classes are a special syntax you can use to match sets or subsets of characters.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6733c5dc74176e4c496d09e6
|
||||
title: What Are Lookahead and Lookbehind Assertions, and How Do They Work?
|
||||
challengeType: 11
|
||||
videoId: U-XnBty3JOo
|
||||
challengeType: 19
|
||||
dashedName: what-are-lookaheads-and-lookbehind-assertions-and-how-do-they-work
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are lookahead and lookbehind assertions, and how do they work?
|
||||
|
||||
Let's learn about lookahead and lookbehind assertions in regular expressions.
|
||||
|
||||
Lookahead and lookbehind assertions allow you to match specific patterns based on the presence or lack of surrounding patterns. There are four variations of these assertions.
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6733c5e54e3a154c8078ed48
|
||||
title: What Are Regex Quantifiers, and How Do They Work?
|
||||
challengeType: 11
|
||||
videoId: 6m2-cgKXpj0
|
||||
challengeType: 19
|
||||
dashedName: what-are-regex-quantifiers-and-how-do-they-work
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are regex quantifiers, and how do they work?
|
||||
|
||||
Let's learn about quantifiers in regular expressions.
|
||||
|
||||
Consider a scenario where you want to match a four-digit identification code. You know you can use the `\d` character class, so you might write that four times. And to avoid any extraneous characters, you'd include both the start and end anchors:
|
||||
|
||||
+1
-8
@@ -1,19 +1,12 @@
|
||||
---
|
||||
id: 6733c5f20cc9584cada942a4
|
||||
title: What Are Capturing Groups and Backreferences, and How Do They Work?
|
||||
challengeType: 11
|
||||
videoId: cplXWWLO9Ic
|
||||
challengeType: 19
|
||||
dashedName: what-are-capturing-groups-and-backreferences-and-how-do-they-work
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
Watch the video or read the transcript and answer the questions below.
|
||||
|
||||
# --transcript--
|
||||
|
||||
What are capturing groups and backreferences, and how do they work?
|
||||
|
||||
Let's learn about capturing groups and backreferences in regular expressions.
|
||||
|
||||
A capturing group allows you to "capture" a portion of the matched string to use however you might need. Capturing groups are defined by parentheses containing the pattern to capture, with no leading characters like a lookahead.
|
||||
|
||||
Reference in New Issue
Block a user