Skip to content

Fix syntax errors in en/regular-expression.md #290

@mmunin

Description

@mmunin

There are a few corrections needed in the file en/regular-expression.md :

  • Line 42:
    Correct syntax should be:
    const regex = /hello/gi;
    use gi for output ["Hello", "hello"]

  • Line 18:
    The regular expression should follow the correct format:
    /pattern/flags

  • Line 222:
    A console.log statement is missing:

    console.log(result); // Result: ["e", 2, "The best things in life ar..."]

Please verify and, if necessary, correct the corresponding sections in other language versions as well.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions