mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-27 20:02:15 -05:00
fix(curriculum): correct caret name (#64478)
This commit is contained in:
@@ -143,7 +143,7 @@ Looking at this example, you can see how the state of the regular expression cha
|
||||
|
||||
The global flag is great when you need to get multiple matches from a single string. But if you're testing multiple strings with the same regular expression it's best to leave the `g` flag off.
|
||||
|
||||
Before learning about the next flag, you need to learn about anchors. The carrot (`^`) anchor, at the beginning of the regular expression, says "match the start of the string":
|
||||
Before learning about the next flag, you need to learn about anchors. The caret (`^`) anchor, at the beginning of the regular expression, says "match the start of the string":
|
||||
|
||||
```js
|
||||
const start = /^freecodecamp/i;
|
||||
|
||||
Reference in New Issue
Block a user