• Cannot refresh search results

    2
    0 Votes
    2 Posts
    172 Views
    John MancinaJ

    Just figured out the problem. I had a directory with temp cached files in the search path…Duh.

  • Regex. Remove headings that has no full stop at the end (.)

    12
    0 Votes
    12 Posts
    2k Views
    guy038G

    Hello, @dumitru-s, @peterjones and All,

    Sorry to reactivate this topic but, @dumitru-s, from the picture, below, could you just bookmark ALL the lines which should be matched, in each chapter, by the “future” regex ?

    You are also invited to add some other chapters, with the corresponding bookmarks, if this way could improve our comprehension of what you want to match ;-))

    0903c4a4-b40b-46d0-8358-f512b43d45f6-image.png

    Thanks for this extra-work !

    BR

    guy038

  • Entering unicode characters with high numbers

    5
    0 Votes
    5 Posts
    369 Views
    PeterJonesP

    @Alan-Kilborn ,

    You are correct. I was posting from my phone and didn’t notice that autocorrect changed “font” to “don’t”. Sorry.

  • Open large txt files >4GB

    2
    0 Votes
    2 Posts
    571 Views
  • Any plugin to index and make the search faster

    3
    0 Votes
    3 Posts
    1k Views
    Java DevelopmentJ

    If there is an indexing plugin it would be great to look into the content easily? example - https://www.addictivetips.com/windows-tips/search-for-notepad-settings-with-a-plugin-that-indexes-them/

  • functionList not working with User Defined Language (MQL4)

    3
    0 Votes
    3 Posts
    740 Views
    JC ManhJ

    Hi @guy038!
    Great!
    Thank you so much!
    It’s worked!
    Love Notepad++ so much!

  • 0 Votes
    30 Posts
    2k Views
    Vasile CarausV

    happy Easter, friends.

    Another solution can be next one:

    Select the link you want from canonical line: (<link rel="canonical" href=")(.*?)(" \/>) Select the second link from ru section: (alt="de" \/></a>&nbsp; <a href=")(.*?)(><img src="index_files\/flag_lang_ru) Combine these 2 regex in the same way (.*?) and put (\2) on second link, after (.*?) (this selects the second bracket, so the link in the canonical line)

    So the regex become: (<link rel="canonical" href=")(.*?)(" \/>)(.*?)(alt="de" \/></a>&nbsp; <a href=")(.*?)(\2)(><img src="index_files\/flag_lang_ru)

    eventualy, we can try (?!\2) instead of (\2) and make a FIND with .matches newsline

    So the regex become: (<link rel="canonical" href=")(.*?)(" \/>)(.*?)(alt="de" \/></a>&nbsp; <a href=")(.*?)(?!\2)(><img src="index_files\/flag_lang_ru)

    Don’t know why is not working. I believe my thinking was correct. :)

    <link rel="canonical" href="https://mywebsite.com/en/truth.html" /> <meta name="copyright" content="me, https://mywebsite.com/"/> <link rel="sitemap" type="application/rss+xml" href="rss.xml" /> <link rel="image_src" type="image/jpeg" href="https://mywebsite.com/icon-facebook.jpg" style="display:none"/> <meta itemprop="image" content="https://mywebsite.com/icon-facebook.jpg"/> <meta property="og:image" content="https://mywebsite.com/icon-facebook.jpg"/> <meta property="og:type" content="article" /> <meta property="fb:app_id" content="2156440"/> <meta property="fb:admins" content="16454242"/> <meta property="og:url" content="https://mywebsite.com/en/other-car.html"/> <body> TEXT TEXT <div class="search"> <div align="left"> <a href="https://mywebsite.com/hope.html"><img src="index_files/flag_lang_ro.jpg" title="ro" alt="ro" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/fr/book.html"><img src="index_files/flag_lang_fr.jpg" title="fr" alt="fr" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/en/truth.html"><img src="index_files/flag_lang_en.jpg" title="en" alt="en" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/es/green.html"><img src="index_files/flag_lang_es.jpg" title="es" alt="es" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/pt/yellow.html"><img src="index_files/flag_lang_pt.jpg" title="pt" alt="pt" width="28" height="19" /></a>&nbsp; <a href="https://mywebsite.com/ar/truth.html"><img src="index_files/flag_lang_ae.jpg" width="28" height="19" title="ar" alt="ar" /></a>&nbsp; <a href="https://mywebsite.com/zh/truth.html"><img src="index_files/flag_lang_zh.jpg" width="28" height="19" title="zh" alt="zh" /></a>&nbsp; <a href="https://mywebsite.com/hi/truth.html"><img src="index_files/flag_lang_hi.jpg" width="28" height="19" title="hi" alt="hi" /></a>&nbsp; <a href="https://mywebsite.com/de/truth.html"><img src="index_files/flag_lang_de.jpg" width="28" height="19" title="de" alt="de" /></a>&nbsp; <a href="https://mywebsite.com/ru/truth.html"><img src="index_files/flag_lang_ru.jpg" width="28" height="19" title="ru" alt="ru" /></a> TEXT TEXT <div id="pixxell"> <a href="https://mywebsite.com/en/book-miracle.html">I find a miracle </div> TEXT TEXT
  • Deleting First line and last two lines from multiple text files.

    11
    0 Votes
    11 Posts
    3k Views
    Alan KilbornA

    @Italo-Marinho said in Deleting First line and last two lines from multiple text files.:

    I want to erase the first 50 lines from my files

    Try searching for \A(?-s)(?:.*\R){50} and replacing with nothing.

  • Reset Notepad++ UI

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Javier-Rios ,

    If you happen to come back: does CCleaner give a report of what registry and other items it cleans/deletes? That report might be able to tell us what entry is causing the problem in the first place.

  • Cut the first line of a file and paste it in another file.

    5
    0 Votes
    5 Posts
    1k Views
    Ahmed ObaidA

    @Terry-R said in Cut the first line of a file and paste it in another file.:

    Indeed there is a faster method. record a macro that emulates the keystrokes you are using and save it. Then you can run the macro and it will repeat those steps without fail everytime.

    You can’t believe how many clicks you’ve saved me. Thanks for your detailed answer.
    That did the trick for me.

  • Dash and Hyphen - no visible difference

    9
    2 Votes
    9 Posts
    2k Views
    guy038G

    Hi, @alan-kilborn,

    Again, as for the https://graphemica.com link, many thanks for pointing us to the https://www.compart.com/en/unicode/ site !

    Just for information, the main sections are :

    https://www.compart.com/en/unicode/ : Home https://www.compart.com/en/unicode/charsets : List of Character Sets https://www.compart.com/en/unicode/block : List of Unicode Blocks https://www.compart.com/en/unicode/category : List of Unicode Categories https://www.compart.com/en/unicode/scripts : List of Unicode Scripts https://www.compart.com/en/unicode/html : List of HTML Entities https://www.compart.com/en/unicode/search?q : List of Unicode Characters INPUT Examples in the "Search" zone : - Char => Character ITSELF - U+10180 or &#x10180 => Character U+10180 ( Character : GREEK FIVE OBOLS SIGN ) - &#10180 => Character U+27C4 = U + Hex(10180) ( Character : OPEN SUPERSET )

    Cheers,

    guy038

  • 0 Votes
    6 Posts
    575 Views
    Eagle3386E

    @Alan-Kilborn

    No, I didn’t.

    Glad to hear that, thanks! 👍🏻

    Even so, it would require developers to do development work.

    That’s always the basic requirement for any software change & NSIS would be way simpler than C++, at least for me… 😉

    I think there is some amount of this going on.

    Again, glad to hear that! 👏🏻

    It sounds as if you have some development expertise.

    Correct.

    A good way to get a change you want is to develop it yourself and submit it for inclusion.
    Just a thought.

    Prerequisite for that is a confirmation it’s doable in NSIS & desired to be done there - because I neither have enough knowledge to write C++ code nor think can afford enough leisure time to learn the required amount.

    Fun fact: I’ve done quite some stuff with NSIS & it’s “IDE” a couple of years ago - with actual “coding” done in N++ & using the “NSIS IDE” only for compiling… 😅

  • "Keep this file in editor?"

    7
    0 Votes
    7 Posts
    7k Views
    PeterJonesP

    I know I am resurrecting an ancient topic, but since a 2021 topic referred back to this thread, I thought I would correct a misunderstanding from this thread, which hadn’t been addressed.

    I checked Notepad++ v6.6.6 from June 2014 (two years before this thread), Notepad++ v7.0 (from Sep 2016, a few months after this thread), and the most-recent Notepad++ v7.9.5 from March 2021, and all three have this feature: specifically, there is a way to turn off that dialog.

    Settings > Preferences > MISC > File Status Auto-Detection, and select Disable in the drop down (or uncheck Enable’s checkbox in v6.6.6). Once that’s disabled, Notepad++ will no longer poll the filesystem, looking for either file deletions or for updates to the file, and you won’t be prompted again. With the Auto-Detection disabled, I do not see the “This file has been modified by another program” dialog, and disabling that option also eliminated the “This file … doesn’t exist anymore”, which this topic was complaining about.

  • Style for Saved Search files?

    7
    1 Votes
    7 Posts
    358 Views
    EkopalypseE

    @Michael-Vincent

    I haven’t checked the source code, but I assume that no styles are set, probably because npp doesn’t expect the lexer to be assigned in the default views.

  • use regex to find based on 2 characters but only replace one

    3
    0 Votes
    3 Posts
    280 Views
    aworkerbA

    lookbehind and lookahead assertions … aren’t part of the “real” match

    That’s the concept I wasn’t able to name.

    Not sure why you made the comma a single thing inside the [ and ] …

    Because I barely know what I’m doing and was piecing it together from possibly applicable Stack Exchange posts.

    Anyway, thanks, you nailed it!

  • 0 Votes
    14 Posts
    17k Views
    guy038G

    Hello, @haleba-hotmail and All

    I cannot reproduce your N++ behaviour. You must run an old N++ release !

    With the v7.9.2 release ( note that the latest is v7.9.5 ) if I fold and bookmark, in any N++ XML configuration file, the <NotepadPlus> tag, then, after using the Search > Bookmark > Copy Bookmarked Lines option and pasting the clipboard contents in a new tab, I only get one line : the <NotepadPlus> line !

    Best Regards,

    guy038

  • 0 Votes
    13 Posts
    624 Views
    guy038G

    Hi, @alan-kilborn and All,

    I really should have thought a bit more, before answering ! Indeed, Alan, although the bookmarks are kept in the session.xml configuration file, there are not stored in files themselves. So, as soon as a file containing bookmarks is closed, these bookmarks are gone away the next time the file is opened, during a new N++ session !

    Sorry for all that noise !

    Cheers,

    guy038

  • Ubuntu ctrl+tab behaviour

    3
    0 Votes
    3 Posts
    368 Views
    Bill NealB

    @PeterJones Thank you Peter. You’re right, I’m running it using WINE. I also use N++ on Windows. I’ve never seen the behaviour I described above on Windows. Apart from this issue, it’s working really well on Ubuntu, and I’m very grateful that it does : )

  • Need to find string if don't have any tags

    4
    0 Votes
    4 Posts
    463 Views
    guy038G

    Hi, @ganesan-govindarajan and All,

    Ah…OK. So, whatever the contents of tags, isn’t it ?

    Then the following generic regex should work nice !

    SEARCH (?-i)<(\w+)>(?2)</\1>(*SKIP)(*F)|(\QWhatever you want\E)

    Note that the part between the \Q ( for Quote ) and \E ( for End ) is just considered as a literal range of characters !

    So, in case of a very simple text to search as, for instance, My text the \Q and \E syntaxes are not necessary and you may use this practical regex :

    SEARCH (?-i)<(\w+)>(?2)</\1>(*SKIP)(*F)|(My text)

    When tested against the text, below :

    01 <para>My text</para> 02 <blockquote>My text <!-- MISSING tag --> 03 <abc>My text</xyz> <!-- NON-regular syntax --> 04 My text <!-- MISSING tags --> 05 <ganesan>My text</ganesan> 06 <123>My text<456> <!-- NON-regular syntax --> 07 My text</blockquote> <!-- MISSING tags --> 08 <h1>My text</h1> 09 (toto)My text(/toto) <!-- NON-regular syntax --> 10 (Test)My text[/test] <!-- NON-regular syntax -->

    it would match the string My text, only in case of non-regular syntax or missing tag. So, in lines 02, 03, 04, 06, 07, 09 and 10 !

    Similarly, if you’re looking for wrong syntaxes of the This is a Notepad++ regex. sentence, it’s better to use the syntax, below, as the text, to search for, contains the + and the . signs, which are regex symbols with a special meaning :

    SEARCH (?-i)<(\w+)>(?2)</\1>(*SKIP)(*F)|(\QThis is a Notepad++ regex.\E)

    Test it against this similar sample :

    01 <para>This is a Notepad++ regex.</para> 02 <blockquote>This is a Notepad++ regex. <!-- MISSING tag --> 03 <abc>This is a Notepad++ regex.</xyz> <!-- NON-regular syntax --> 04 This is a Notepad++ regex. <!-- MISSING tags --> 05 <ganesan>This is a Notepad++ regex.</ganesan> 06 <123>This is a Notepad++ regex.<456> <!-- NON-regular syntax --> 07 This is a Notepad++ regex.</blockquote> <!-- MISSING tags --> 08 <h1>This is a Notepad++ regex.</h1> 09 (toto)This is a Notepad++ regex.(/toto) <!-- NON-regular syntax --> 10 (Test)This is a Notepad++ regex.[/test] <!-- NON-regular syntax -->

    Best Regards,

    guy038

  • 0 Votes
    12 Posts
    594 Views
    Robin CruiseR

    super answer, thank you sir @guy038