• Extract number between two strings

    2
    0 Votes
    2 Posts
    295 Views
    Terry RT

    @Shahir-Afif said in Extract number between two strings:

    Is there even a possibility to achieve this? I would greatly appreciate your inputs…

    It certainly is possible, and you were on the right track.
    Find What:(?-s).+?object_id=(.+?)sap_archive.+
    Replace With:${1}

    Should work for you.

    If you want more information on what it is doing ask.

    Terry

  • 0 Votes
    4 Posts
    779 Views
    Rob PetersonR

    @PeterJones derived my answer from the discussion post… played around with the values in GUI section of the config and got it working. Thanks again for the assistance!

  • Remove last 5 characters from lines in text file?

    4
    0 Votes
    4 Posts
    3k Views
    M Andre Z EckenrodeM

    @drghty

    By the way, you wrote “remove the last 5 lines from a text file”, but your example indicates removal of the last 5 characters from each line, so I assume the latter was correct.

    @Mark-Olson

    Ah, yes — my bad, and thanks much for the correction.

    For @drghty , just to make sure you understand why Mark’s correction is potentially important, depending on the total content of your text file, my FIND pattern .{5}$ would also match up to five consecutive newline sequences, if your file has multiple consecutive newlines, if it does not include (?-s), or you don’t have . matches newline disabled.

  • Search results editing

    6
    0 Votes
    6 Posts
    740 Views
    Alan KilbornA

    @Tylor-J said in Search results editing:

    I have the same issue.

    If you have a nice, easy reproducible case, probably showing it here helps.

  • Regex mask a list of emails?

    2
    0 Votes
    2 Posts
    715 Views
    guy038G

    Hello, @kraddock and All,

    For your first goal, I propose this regex S/R :

    SEARCH (?!^).(?=.*.@)

    REPLACE *

    And you end up with this OUTPUT text :

    e****1@gmail.com s***********l@icould.com t********l@yahoo.com

    For your second goal, I propose this regex S/R :

    SEARCH (?!^).(?=.*@)

    REPLACE *

    And you end up with this OUTPUT text :

    e*****@gmail.com s************@icould.com t*********@yahoo.com

    For each case, check the Regular expression search box !

    Best Regards,

    guy038

  • ftp migrate

    3
    0 Votes
    3 Posts
    946 Views
    PeterJonesP

    @Alan-Kilborn said in ftp migrate:

    I’d guess NppFTP does as well.

    Confirmed: there is a subfolder, %AppData%\Notepad++\plugins\Config\NppFTP which contains multiple files as well as a Cache folder under that. If you want the settings, you just need to copy the %AppData%\Notepad++\plugins\Config\NppFTP\NppFTP.xml to the new pc – the other files are just “certificates” and “known hosts” which will be automatically generated the first time you connect to a given site; and the Cache\ subfolder is just for holding the local copies of the remote files you are editing.

  • Reordering keywords saved for 'Find What' list of Find functionality

    5
    0 Votes
    5 Posts
    556 Views
    Terry RT

    @Raj-Kadam

    Please don’t create duplicate posts. Your other post should be removed, you can do that. Since your question is a follow on from this series of posts this is where you should ask further questions and get more answers.

    The other post has no frame of reference (preceding posts) so cannot be answered by anyone without reading this series of posts.

    But to answer your last question, it’s the %appdata%\Notepad++ that is the “normal” location for the config.xml. Please read the FAQ post What is %AppData% for more information.

    Terry

  • Macros doesn't work on the newest version

    3
  • Help to replace a specific text

    4
    0 Votes
    4 Posts
    295 Views
    ParallaxedP

    Thank you both for responding. I have followed your advice and finally I have been able to do it using Excel, much easier than I imagined. Thanks again!

  • Stopped remembering current session

    3
    0 Votes
    3 Posts
    412 Views
    PeterJonesP

    @AeOeAa said in Stopped remembering current session:

    Hi

    I’ve changed the location of my ++ (to the portableapps.com subdirectory) and … does not work. … Any guesses to what I’ve changed or need to change?

    What needs to change? Stop using PortableApps dot com. They change applications in strange and unknown ways, and they don’t bother to test if their changes mess up the applications they are changing.

    For some applications, PortableApps provide a service, since those apps don’t come with a pre-built portable version. But Notepad++ has had its own portable distribution for as long as I can remember (it has definitely had it since at least v6.0 in 2012, and the doLocalConf, per github history, has been around since before Notepad++ was added to github in 2009), so there is no reason to ever use PortableApps’s changed version of Notepad++. Delete that version, then go to notepad++'s official download at https://notepad-plus-plus.org/downloads/ and grab the most recent zipfile portable from the official location. The PortableApps version of Notepad++ does nothing but cause problems in this forum. Avoid it.

    The official Notepad++ distributions, both installed and portable zipfile, both work correctly for “remember current session for next launch” and “enable session snapshot and periodic backup”.

    Alan answered your question about the directory. If you want to learn more about Notepad++'s backup, and the improvements that can be had by using a properly-configured AutoSave Plugin, please read:

    the User Manual entry on backup settings: https://npp-user-manual.org/docs/preferences/#backup our FAQ: https://community.notepad-plus-plus.org/topic/21782/faq-desk-periodic-backup-vs-autosave-plugin
  • Help with searching phrases in files

    3
    0 Votes
    3 Posts
    279 Views
    Jimmy MurrayJ

    @Alan-Kilborn Thank you very much!!!I will try

  • Speed Scroll

    11
    0 Votes
    11 Posts
    3k Views
    mkupperM

    @m-r said in Speed Scroll:

    I get this auto scroll ability in Firefox, Chrome, and Notetab l among others.

    scroll.png

    is there way to get it to work in Notepad++

    No, see https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9887 and then https://sourceforge.net/p/scintilla/feature-requests/1197/

    Neither of those links present a strong argument for why autoscroll can’t or won’t be implemented but the answer so far has been “no, it won’t be implemented.”

    FWIW, support for autoscroll would first need to be added to Scintilla.

  • Find in files: File is too big to be opened...

    2
    0 Votes
    2 Posts
    455 Views
    christian-cgiC

    @christian-cgi OK, solved it. Installed 64-Bit version and now everything works fine :-)

  • Notepad++ says it cannot find the

    5
    0 Votes
    5 Posts
    750 Views
    Alan KilbornA

    @Marc-Hankin said in Notepad++ says it cannot find the:

    What can I or we do to get this fixed,

    Probably best course of action is to open an issue, here: https://github.com/npp-plugins/pork2sausage

  • Change tab font size and document font color

    4
    0 Votes
    4 Posts
    709 Views
    PeterJonesP

    @m-r ,

    I’m not convinced you actually read my post, or the link I sent you to. For example, the second screenshot you posted proved you didn’t understand even my first paragraph, which only mentioned the Style Configurator dialog, not the Preferences dialog.

    Further, I cannot imagine why you want to pick Notepad++ as your text editor, then disable one of its core features (syntax highlighting, where comments are different color from keywords are different color from known constants or functions are a different color from identifiers are a different color from …).

    But if you want to take an awesome took like Notepad++, and make it effectively equivalent to the Win11 tabbed notepad.exe but with a better search engine – fine, I’ll tell you how to ruin Notepad++.

    The reason it “imposed a green color” (or rather, that your Global Override settings didn’t impose a black color on syntax-highlighted text) is because you didn’t enable the Global Override on foreground and background color as well. If you want the Global Override to override everything, so that no language (be it CSS or HTML or JS or anything) gets any fancy colorings or weight or fonts for any of its syntax (effectively turning off syntax highlighting), you have to enable all the “enable global XXX” options on that dialog, not just some.
    I marked up your screenshot to show you which additional boxes you have to checkmark.

    dfdd5a86-b5fe-4b5b-a47e-019abc11de19-image.png

    addendum: you will also want to change the foreground color from light yellow to black, and your background color from orange to white; sorry I forgot to mention that when I first posted this

    That will make every piece of text in the Notepad++ editor panels be the same color and font and size and weight, regardless of syntax (and effectively disable one of Notepad++'s core features).

  • Notepad++ inserts text on carriage return

    2
    2 Votes
    2 Posts
    237 Views
    wonkawillyW

    @David-Leigh

    Yes that plugins gives this “issue” sometimes when it is active and doesn’t interpret correctly the operation to evaluate.

    For example
    01e8c4b0-6e01-42e2-9f0e-6ea3d8ce6de7-image.png

    Its icon is:

    06dd1f7f-96cd-4e7d-bf2f-b57285149d61-image.png

    and can be disabled with it with just a click and this together with removing keyboard shortcuts will be a final solution for that issue.
    I had exactly the same issue and adopted exactly the same solution: no more problems. Now when I want it active I just click on the icon so I am aware it is working.

  • Function List incomplete

    25
    0 Votes
    25 Posts
    2k Views
  • How to change back the line number format?

    7
    0 Votes
    7 Posts
    11k Views
    Joseph StanishJ

    @Viji-Amarasing You are correct.

  • Hindi Font Issue

    6
    0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @mkupper said in Hindi Font Issue:

    It seems like an encoding issue

    Yes, I think you’re right. A fresh, default installation has Settings > Preferences > New Document set to UTF-8, and even “Apply to opened ANSI files” checkmarked. But if they have a config file that’s been upgraded many times, it might still use ANSI without them having set it; or if they have ever intentionally set that option to ANSI or to one of the pulldown character sets, then it will not be defaulting to UTF-8 for new files. And even if it’s on UTF-8, if they don’t have the “Apply to opened ANSI files” checkmarked or if they have Settings > Preferences > MISC > Auto-detect character encoding set to true, then when they open an existing file (which post-links.txt may have already been a file), it might not be opened as UTF-8.

    If @Sunny had included the status bar in the screenshot, it would have clarified a lot. As it is, @Sunny will have to answer whether the lower-right of the status bar says UTF-8 or something different:
    c96f1885-23d8-434a-affb-bfb482e2b629-image.png

    If it says something different, then @Sunny can do Encoding > UTF-8 (if there aren’t any other characters than the ? that was shown) or Encoding > Convert to UTF-8 (if there are other characters), and then re-paste the text.

  • SVG files as icons instead of bmp/ico type

    8
    0 Votes
    8 Posts
    505 Views
    wonkawillyW

    @PeterJones said in SVG files as icons instead of bmp/ico type:

    That’s what you put together for the 2021 suggestion.

    No it is a further improved GUI

    It has nothing to do with this SVG icons discussion.

    You’re right. I just showed it to demonstrate my limitations in c/c++ because the only thing I am able to do is creating GUI with code::blocks

    If you want to continue to discuss SVG files as icons in this topic, especially a potential plugin, go ahead, I’ll not interfere.

    Don’t worry: you are welcome.