Skip to content

mistake in tutorial (for lookbehind chapter) #658

Description

@jyloup

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions