Giter Site home page Giter Site logo

Comments (6)

alankilborn avatar alankilborn commented on May 29, 2024

Show screenshot of your Find window when this fails.

from notepad-plus-plus.

xTheWhiteTigerx avatar xTheWhiteTigerx commented on May 29, 2024

image

from notepad-plus-plus.

xTheWhiteTigerx avatar xTheWhiteTigerx commented on May 29, 2024

I was able to resolve the bug by switching to Search Mode -> "Normal". However, given that I never chose "Regular expression" to begin with, the failure of the default Find feature, as well as the lack of any warning that "Regular expression" leads to irregular find results, is an unfortunate failure in what is otherwise a very good program.

from notepad-plus-plus.

alankilborn avatar alankilborn commented on May 29, 2024

Switching to Regular expression search mode automatically uncheckmarks Match whole word only, which I suspect was your original problem (and why I asked for a screenshot). As the final character in your Find what text is NOT a "word character", this (having Match whole word only checkmarked) is problematic.

There's more information about this in the Notepad++ user manual -- accessible from Notepad++ on the ? menu.

from notepad-plus-plus.

xTheWhiteTigerx avatar xTheWhiteTigerx commented on May 29, 2024

To be clear, the previous image was shown when Notepad++ failed to find the string. It failed because it was set to "Regular expression" instead of "Normal." I hope this clarifies things.

from notepad-plus-plus.

alankilborn avatar alankilborn commented on May 29, 2024

It failed because it was set to "Regular expression" instead of "Normal." I hope this clarifies things.

Ah, okay, sorry for the misreading/misinterpretation on my part; let me start over. :-)


However, given that I never chose "Regular expression" to begin with...

You MUST have, at some point, chosen it, because it is not the default search mode. Normal is the default, for obvious reasons. If you change the Search mode, it will remain in that mode until you change it again.

The text data from your Find what will not match (in Regular expression mode) because of the [ and ] characters in that data (they are special regex metacharacters). What you are instructing search to do (I know, you didn't intentionally do this) is to match up to (but not including) the first [ literally, and then match any ONE single character from the set ', b, o, d, y, and then match the text following the ] literally.

Since you don't have something like e.g. html = f"{selected_emailb}<img src='cid:image1'>" in your document, it doesn't match.


I think that covers it and hopefully this issue may now be closed (by you, please).

from notepad-plus-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.