Skip to content
  • Sponsor bobocode-projects/java-fundamentals-exercises

  • Notifications You must be signed in to change notification settings
  • Fork 495

3-6-3-crazy-regex. There is a mistake in the branch 'completed'. #163

Open
@obaibula

Description

@obaibula

I refer to the findLastWord() and findFirstWord() methods.

If you add the string " ........." to the end of the note.txt file like this, the regex from the branch "completed" won't pass the tests, which is "\w+$".

As far as I am concerned, we should use something like "\w+(?=\W*$)" instead.

Please, let me know If I am mistaken here.

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

      3-6-3-crazy-regex. There is a mistake in the branch 'completed'. · Issue #163 · bobocode-projects/java-fundamentals-exercises