Exlude newline characters
See original GitHub issueShouldn’t newline characters (\n
and \r
) also be part of the tokenizer regex?
Otherwise, words at the start of a new line won’t be matched by a search since the preceding newline chars are added to the start of that term.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Python | Removing newline character from string
The strip() method in-built function of Python is used to remove all the leading and trailing spaces from a string. Our task can...
Read more >How can I remove a trailing newline? - python - Stack Overflow
You may use line = line.rstrip('\n') . This will strip all newlines from the end ...
Read more >How to remove newlines from C# strings? - Kodify.net
The first option is to cut away any and all newline characters from a string. This approach has the biggest impact since it...
Read more >Remove Newline Characters command - EmEditor Help
Removes newline characters at wrap points in the selection. Similar to Join Lines command, but this command does not insert a space at...
Read more >How to Remove Newline Characters from a text File?
In this article, we will show you how to remove the newline character(\n) from a given text file using python. Assume we have...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think that’s because in your test case, there are spaces (the indentation) between the newline character and the word you’re searching for.
I can work on a PR if you’d like 😃
Awesome, thank you!