Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Positive and Negative Lookahead bug #209

@davewburns

Description

@davewburns

Describe the bug

The test will pass with only one number present using this regex /(?=\w{5})(?=\D*\d)/

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Use /(?=\w{5})(?=\D*\d)/ as the code solution.
  3. The test will pass.

Expected behavior

The test should fail as a word with only one number at the end will be found with the regex. This was tested on regextester.com

Desktop (please complete the following information):

  • OS: [Debian Linux]
  • Browser [Chrome]

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