mistake in tutorial (for lookbehind chapter)

Open Beginner friendly
#658 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
95/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript
Domain
documentation

Research direction

Open the linked regexp lookahead/lookbehind tutorial page and locate the second lookbehind syntax sentence. Correct the negative lookbehind operator from "(?<=Y)X" to "(?<!Y)X", then reread the surrounding text to confirm the positive and negative examples are distinct.

Written by the indexing model from the issue text.

Description

il est écrit "=" au lieu de "!" dans la deuxième phrase du tutoriel sur le chapitre "lookbehind" de cette page https://fr.javascript.info/regexp-lookahead-lookbehind:
"La syntaxe est:
Lookbehind positif: (?<=Y)X, correspond à X, mais seulement si il y a Y avant lui.
Lookbehind negatif: (?<=Y)X, correspond à X, mais seulement si il n’y a pas Y avant lui.
"

La phrase doit être
Lookbehind negatif: (?<!Y)X, correspond à X, mais seulement si il n’y a pas Y avant lui.

Dominant language
HTML
Stars
242
Forks
109
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from javascript-tutorial/fr.javascript.info

All issues in javascript-tutorial/fr.javascript.info

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.