jupyter / jupyter/notebook

search: zero-width regex found repeatedly

Open
#5,017 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

This issue is best described by example (MWE):
- open/create any notebook. It can even be completely empty
- search with enabled regex: `^` (`$` works the same)

result:
---

The same occurrence is found over and over again. A warning is displayed as well:
```Warning: too many matches (101). Some changes might not be shown or applied.```
the count may differ from 101.

expected result:
---

Every beginning of line is found once.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in an empty notebook by enabling regex search and searching for `^`, then compare with `$`. Trace the notebook search entry point and make the result show each line start once without the repeated-match warning; verify the same behavior for both expressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.