• in a list, remove all text before character

    6
    0 Votes
    6 Posts
    5k Views
    Alan KilbornA

    @datatraveller1

    Terry is right, but the shorter version is that it saves me from having to write my response this way:

    Find: ^.*?-
    Replace: nothing
    Search mode: Regular expression
    . matches newline checkbox: Unchecked

    As you can see, many less characters to type for me to simply use (?-s)

    BTW, for those that don’t know, if the . matches newline box is checked, it effectively puts a (?s) at the start of whatever regular expression you supply in the Find what. So if your regular expression supplied is (?-s)^.*?- it becomes (?s)(?-s)^.*?- which is really just (?-s)^.*?- because the (?-s) part “undoes” what the leading (?s) does.

  • Special characters not showing on some file on some computer

    17
    0 Votes
    17 Posts
    5k Views
    Paul WormerP

    @Alan-Kilborn said in Special characters not showing on some file on some computer:

    @Paul-Wormer

    I presume you are taking screenshots using Win+Shift+s keycombo?

    Yes.

  • simple UDL highlighting Apostrophes & Quotation Marks

    3
    0 Votes
    3 Posts
    360 Views
    Christoph De WolfC

    Hello,

    This does exactly what I want, thank you very much.

    greetings,

    Christoph

  • Need Notepad++ to install on Windows 2000

    2
    0 Votes
    2 Posts
    854 Views
  • BUG with characters in extended character set

    12
    0 Votes
    12 Posts
    774 Views
    Andrew McPA

    @Alan-Kilborn ah!!! Cool, well let me rephrase…your short term memory is great :)

  • Apply macro to a selected characters in a file

    2
    0 Votes
    2 Posts
    286 Views
    PeterJonesP

    @Rom-Ortiz-Toro ,

    Any operation that works on the active selection that can be macro recorded will already work as you describe. Any operation that does not take into account the active selection is not likely to be able to work in the way you describe.

    As a first level of improvement, you could automate the copy/new/paste/actions/copy/paste sequence into one macro, rather than doing the preliminary and cleanup copy/pastes outside the macro.

    Then, depending on what the actions are, you might be able to limit them to only be in the selection, rather than the whole document. But since you’ve given us no hints as to what it might be doing, we cannot comment on whether that’s feasible for your particular macro.

    Finally, there are actions that are too complicated to turn into macros. For such actions, we often suggest switching to one of the scripting plugins for Notepad++, like PythonScript; those plugins allow you to use a programming language to automate Notepad++ to your heart’s content: they have full access to the contents of the open files as well as being able to trigger any of the actions you can take from the GUI.

  • Issues with Menus in Notepad++ and Windows 11 (OS Build : 22621.819)

    2
    0 Votes
    2 Posts
    173 Views
    PeterJonesP

    @Chuck-Rheault-0 ,

    I’m not sure I fully understand what you mean by “boxes around every menu item”: a screenshot might be helpful for us to understand the problem. I have never seen a problem with menus being to narrow or not appearing…

    If you have other programs displaying similar symptoms, then I’d hazard a guess that it’s something with the particular update of Windows 11, and not anything that Notepad++ can do anything about. (My home PC, which is Windows 11, has been prompting me to get the next update; I had been planning on doing it during Thanksgiving break next week, but maybe I’ll continue to hold off on doing that, if it’s breaking things like Notepad++.)

  • intune update

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Karolina-Sikorska ,

    There is no official Notepad++ distribution using MSI technology. All official distributions are either self-extracting exe files or .zip/.7z

    I have seen that there are some people on the net who re-package Notepad++ into an MSI, but they are not officially distributed, and the Notepad++ developers make no guarantee or warrantee that what gets installed from any MSI is actually the official Notepad++ product: the developers have no control over whether the re-packagers have modified Notepad++ in some nefarious or other manner.

    Notepad++ developers do not support the unofficial MSI distributions.

    Official Download Sites https://notepad-plus-plus.org/downloads/ and any pages on that site https://community.notepad-plus-plus.org/category/1/announcements and the http://download.notepad-plus-plus.org/repository/ links that they reference https://github.com/notepad-plus-plus/notepad-plus-plus/releases/

    No place else is sanctioned or supported

  • Auto Complete - List only specified keywords?

    7
    0 Votes
    7 Posts
    618 Views
    J

    @Lycan-Thrope

    Ah hah. Thanks for that tip. I’m fairly sure that I don’t have the proper order then. I’ll have to take a closer look at that.

  • How to find webpages where a particular link was not added

    11
    0 Votes
    11 Posts
    622 Views
    dr ramaanandD

    @PeterJones I could do it in one step with ${0}\r\n<li><a href=otitis.html">Otitis</a></li> in the Replace All field using the Regular expression mode

  • How to change the keyword for block start?

    3
    0 Votes
    3 Posts
    186 Views
    Rory WastR

    @PeterJones I use the standard Pascal syntax, but this little thing is like a splinter) It’s a pity that you can’t change it. Thanks for the answer.

  • 0 Votes
    2 Posts
    809 Views
    PeterJonesP

    @Apple-Ono ,

    You already asked that question in your reply in this thread. And I had answered you there already. Don’t repeat yourself.

    [admin is locking the thread; replies go in the other thread.]

  • Changelog of notepad++ releases?

    2
    0 Votes
    2 Posts
    213 Views
    PeterJonesP

    @Vanshika-Warathe ,

    I don’t think I have ever noticed Notepad++ publish a change as a result of a “CVE”.

    There is definitely not an API for accessing changes. Each version comes with its own change.log. And those are all amalgamated into https://github.com/notepad-plus-plus/notepad-plus-plus/wiki/Changes . I don’t find CVE mentioned on that page anywhere, though “security” is mentioned a few times.

  • A single UDL.xml for both theme types (light and dark)?

    17
    0 Votes
    17 Posts
    2k Views
    Lycan ThropeL

    @PeterJones ,
    Interesting, but my environment is so custom done, overriding the system defaults that it’s a mess either way. :) But it seems to work.

  • Copy and paste sections with RegEx or macro?

    7
    0 Votes
    7 Posts
    719 Views
    guy038G

    Hi, @venus642, @neil-schipper and All,

    Oh… yes, totally exact and clever iniiative Neil, indeed !

    Of course, as the " character and the string ";" seemed to be separators, I presumed that they were not used within the content of the questions. But I agree that this new formulation is safer !

    So, @venus642, the second regex S/R to use is, preferably :

    SEARCH ☑(?=(?s:(?!"\R).)+";"\R)

    REPLACE

    Cheers,

    guy038

  • How do I replace a particular sentence across multiple files?

    24
    0 Votes
    24 Posts
    2k Views
    guy038G

    Hi, @terry-r,

    Of course, in absolute terms, you’re quite right about it ! But I would say that people are responsable of what they write !

    My regex finds a word Please, followed later with the nearest word E-mail, followed later with the nearest word treatment

    If, because of some typos, one or several of these 3 words are truncated or modified in any way, due to the initial (?s) modifier, the regex engine will always try to find out, by all means, a match, if any !

    Note that I suppose a possible variation by telling, in my previous post : " Check the Mach case option, if necessary "

    Thus :

    Any malformed word is just considered as stuff, part of the regex part .+?

    And for the smallest range of characters containing these 3 words in that order ( Please ... E-mail .... treatment ) :

    A <b> string is inserted before the first word Please

    A </b> string is inserted after the final word treatment

    No more, no less !

    BR

    guy038

  • Regex: How do I search for My_String [any characters] [quotation mark] ?

    18
    0 Votes
    18 Posts
    3k Views
    IanSunlunI

    @PeterJones Ah, thats good to know, thanks !

  • Function List for UDL - multi-line regex

    9
    0 Votes
    9 Posts
    453 Views
    J

    @Lycan-Thrope

    Of course, I realized that after @PeterJones posted his answer.

  • 0 Votes
    5 Posts
    493 Views
    IanSunlunI

    @Alan-Kilborn Now that I put the \r in, it is finding the literal equals sign.
    Before I was putting =\n, it should be =\r\n as I am on Windows.

  • Replace a line with 2 new lines

    4
    0 Votes
    4 Posts
    305 Views
    Alan KilbornA

    @Edgar-Rousselin

    Try:

    Find: ^N\d{3} M9$

    You can learn some of this (regular expression) stuff yourself.
    See the USER MANUAL section.
    Also see the FAQ entry.