• Remove everything but specific chains

    7
    0 Votes
    7 Posts
    2k Views
    guy038G
    Hello, @david-l, But, regarding the two last cases : amounts 1234 and 4567 amount A1A1 do they need to be followed with a space or dot character as well ? Remember: regular expressions are a school of precision ! Each character and its position has its importance ! Best Regards, guy038
  • Notepad has hyjacked Windows Notepad

    4
    0 Votes
    4 Posts
    2k Views
    Lycan ThropeL
    @_ , Amazing. The man answers your question in a straight forward and informative manner, and you read ''annoyed" in it? Wow, you’ve shown super powers of wokeness. Moving on. Downgrading post. And yes, that was a conveyed “annoyed” response on my part.
  • Change the color of the previous line

    3
    1
    0 Votes
    3 Posts
    463 Views
    HaichitoH
    @PeterJones Okey, I will try to implement what you said. Thank you very much.
  • Help with Regex

    4
    0 Votes
    4 Posts
    557 Views
    PangolinP
    Thank you very much Mark and Guy for taking the time to answer my request. It is really appreciated! Have a nice evening
  • 0 Votes
    2 Posts
    550 Views
    PeterJonesP
    @Antonio-Guerriero , You just want it to be “any token that ends in a : should be considered a LABEL”? Yeah, the User Defined Language lexer isn’t designed to be that complicated: it is intended for a specific list of keywords The EnhanceAnyLexer plugin will allow you to add a regex to change the foreground of matching text on a per language (per UDL, or per builtin lexer). Assuming that the LABEL has to be the first non-whitespace sequence on a line, and must be only alphanumeric-and-underscore-before-:, then the following should make your LABEL green. [your_udl_name_here] 0x00CC00 = ^\h*\w+:
  • Binary file does not reload with the HEX-editor

    2
    0 Votes
    2 Posts
    586 Views
    PeterJonesP
    @Pavel__A , “base” Notepad++ has no problem with File > Reload From Disk. The symptoms you have described are almost definitely related to the HEX-Edit plugin, not Notepad++ itself. You can try to put in an issue here, but there are a lot of open issues on that plugin, and I won’t guarantee that it will be fixed. (The release history over the last few years seems to focus mostly on “crashes”, not any new features or minor bug improvements.)
  • Looking for string search that includes the & mnemonic

    14
    0 Votes
    14 Posts
    2k Views
    Alan KilbornA
    @guy038 said in Looking for string search that includes the & mnemonic: I noticed that the search is a non-sensitive search If you wanted a “sensitive” search you could add (?-i) to the start(s) of the expressions you input at the prompt.
  • Search for a list of strings in another file.

    8
    0 Votes
    8 Posts
    5k Views
    Alan KilbornA
    @gendalv said in Search for a list of strings in another file.: although I had to figure out how to actually run a python script in np++, ended up installing PythonScript plugin, which is also not obvious, how to add a script to, but, after some fiddling You could have found quicker answers had you consulted this site’s FAQ entry for : How to install and run a script in PythonScript
  • Hide text

    hide text fold
    3
    0 Votes
    3 Posts
    984 Views
    F
    @Alan-Kilborn thank you for this clear answer.
  • remove correlative text from multiple lines

    9
    0 Votes
    9 Posts
    955 Views
    Alan KilbornA
    @Mark-Olson said in remove correlative text from multiple lines: try using \s And note that \h is often better than \s. \s will match end-of-line characters which isn’t always what people expect.
  • Delete numbers following letters ( i.e. \w\d+\s becomes \w\s)

    3
    0 Votes
    3 Posts
    594 Views
    Luís GonçalvesL
    @Alan-Kilborn you’re right! Haha. Sorry about that, I’m just finding how regular expressions work (and I’m loving it, even though it’s hard to learn all by oneself)… so I’m sorry if sometimes my questions are more or less repetitive -.-’
  • "Intellisense" suggesting wrong words

    11
    0 Votes
    11 Posts
    1k Views
    Petr DemuthP
    @Michael-Vincent said in “Intellisense” suggesting wrong words: @Petr-Demuth said in “Intellisense” suggesting wrong words: Notepad++ v8.4.8 (64-bit) That’s the problem. If you want the behavior we are seeing, upgrade to 8.5 or newer. On a fresh 8.4.8 portable, I observe the same behavior as you do. Cheers. Kudos! Now works OK :) [image: 1679572901787-01331bb5-6b6c-41b0-aef7-a4882c501a94-image.png]
  • Code Collapsing Weirdness

    3
    0 Votes
    3 Posts
    376 Views
    Alan KilbornA
    @Jason-Burnett: I try to collapse one sub_fld, it collapses the parent element I don’t know…works for me correctly, with N++ 8.5: [image: 1679571941844-dcc4a6bd-72bc-478a-a9be-77e935a9cf7f-image.png] I guess if it doesn’t work for you, you’ll have to demo something about exactly what it is doing for you.
  • Snaphot not work with Plugin !?

    4
    1
    0 Votes
    4 Posts
    554 Views
    Michael VincentM
    @Mes-E-M said in Snaphot not work with Plugin !?: How can a Plugin interfere with periodic autosave? The Notepad++ API changes so does the underlying Scintilla API - so it could be any number of things. What old version of Notepad++ did it work on? Where is the code to your plugin? Cheers.
  • 0 Votes
    7 Posts
    2k Views
    Alan KilbornA
    @pbarney said in Is it possible to replace individual characters inside a regex capture group?: If I owned a software development business, I’d hire you as Chief RegEx Officer. I fully endorse this.
  • langs.xml

    2
    0 Votes
    2 Posts
    418 Views
    PeterJonesP
    @DomOBU , My general procedure in something like that is to do a DIFF between the two versions (the Compare Plus plugin is quite helpful for that) – and anyplace that is undoing your own setting can be ignored, but anything added to the v8.5.1 one that isn’t in your existing should be added; once your copy has been updated to include any new entries from v8.5.1, then you can copy your updated XML overtop the one in the v8.5.1 directory and restart Notepad++.
  • Insert new line after every comma, colon AND period mark

    4
    1 Votes
    4 Posts
    26k Views
    Alan KilbornA
    @Luís-Gonçalves said in Insert new line after every comma, colon AND period mark: The problem with that regex is that it deletes the commas, colons and period marks, which I don’t want to. I want to keep them as they are, while inserting a new line after them. Ah, I missed that detail. Revise the Replace: $0\r\n
  • Replace text inside Quotations

    6
    0 Votes
    6 Posts
    2k Views
    Alan KilbornA
    @geeman72 said in Replace text inside Quotations: and worked with this Seems reasonable!
  • How to get search partially instead of exact match?

    7
    0 Votes
    7 Posts
    2k Views
    Alan KilbornA
    @Neil-Schipper said in How to get search partially instead of exact match?: This could be achieved by using a suitable regex with a logical or directive and Mark All. I meant when using the simple regex I supplied.
  • mouse cursor changing shape as i move it

    cursor movement
    4
    0 Votes
    4 Posts
    3k Views
    Terry RT
    @Terry-R said in mouse cursor changing shape as i move it: I only ever have the pointer when on menu options , radio buttons (under settings) and the I when over a text input field or in the tab itself to type characters. After seeing @Alan-Kilborn response I checked again. it took some searching but found the “finger”, when over Settings, Preferences, Recent Files History, Max. number of entries. I doubt there are many occurrences of those “pointers”, but as @Alan-Kilborn says, it’s normal behaviour. Terry