• Finding end of line with specific character right after

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Ger PGG
    I had tried \r\n @, with an empty space between the “n” and the “@”. Don’t really know why I put the space there. Thanks for your help!
  • Setting up a UDL, Beginning of line?

    3
    0 Votes
    3 Posts
    2k Views
    SonOfDiabloS
    I was fearing as much :/ That kinda sucks, welp, nothing to do about it I guess. Thanks for your input my good sir :)
  • Can Notepad++ access SQL database?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Error Plugin XML Tools in 7zip x64

    2
    0 Votes
    2 Posts
    2k Views
    chcgC
    see https://notepad-plus-plus.org/community/topic/12556/xml-tools-2-4-9-x64-released-for-tests
  • Proximity search

    18
    0 Votes
    18 Posts
    15k Views
    Vasile CarausV
    hello friends, and Happy Easter ! Just read this topic, and guy038, I don’t understand 2 things on those regex of yours, like this one: (?si)(?<=\W)(Word1)((?:\W+\w+){0,50}\W+)(Word2)(?=\W)|(?<=\W)(?3)(?2)(?1)(?=\W) You forgot to mention what means the second part of your regex (?<=\W)(?3)(?2)(?1)(?=\W) ? You already know me, I ask a lot of question, to learn more. And if I don’t understand, I ask.
  • Finding html tags and everything between them on >>multiple lines?

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    guy038G
    Hello, @semicodin, The correct regex to match any range of characters, even on several lines, with the syntax : - <script .....>................... </script> or : - <script> ........................ </script> is (?s-i)<(script)( |>).*?</\1> Notes : The initial part (?s-i) are modifiers, which forces the regex engine to consider that : The special dot character can match, absolutely, any character ( Standard or End of Line characters ) The search will be performed in a sensitive way ( = non-insensitive ) Then, the first part <(script)( |>) tries to match, either, the string <script> OR the string <script, followed with a space character. Note that the word script, embedded in round parentheses, stands for group 1 The third part </\1> matches the exact string </script> And the second part .*? represents the shortest range of any character between part 1 and part 3 IMPORTANT : Don’t forgot that this simple regex supposes that no other block <script......</script> is nested, inside the initial block ! Best Regards, guy038
  • Issue organizing tabs

    8
    0 Votes
    8 Posts
    4k Views
    gerdejrG
    Sorry about that. I missed it in your previous post even though looking back it should have been obvious. Good to see it’s been added back in. Thanks for the help.
  • Force a page break during printing

    4
    0 Votes
    4 Posts
    8k Views
    Andrew SackettA
    I don’t see anything obvious in the Print preferences that will “print” the FF as an actual form feed rather than a white FF on a black background. Any ideas? I agree that many characters of ASCII < 32 should be “masked” during printing, and appear as, say “NUL”, or “BEL”, rather than an actual NUL character or an audible bell. But FF (ASCII 12), like TAB (ASCII 9), is a legitimate formatting character. There may be times when I want that printed as a white FF on a black background, but there should be an option I can set, or toggle just before printing, to see a page break in my printed document, rather than the black mask for the FF. Thanks for reading. – Andrew
  • Removing NUL characters

    2
    0 Votes
    2 Posts
    10k Views
    NN---N
    You can replace them. I also need the same feature. https://notepad-plus-plus.org/community/topic/13580/display-control-characters-as-empty-character-or-as-spacing/3
  • Recovering unsaved file

    Locked
    2
    0 Votes
    2 Posts
    11k Views
    Tin KosicT
    I realized why I don’t have those folders, it’s because I use the portable version of N++. There’s a backup folder in the N++ folder, but there’s only one much older file in there. Is there ANY way I can get this back?
  • Add text at the end of line only i line starts with specific word? Regex

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    guy038G
    Hi, @chris-adamos, No problem with regexes, indeed ! So : Get back to the very beginning of your file ( Ctrl + Origin ) Open the Replace dialog ( Ctrl + H ) SEARCH (?-si)^DATA.+ REPLACE $0 "p:120 - 4 beats" with a space character, right after $0 Select the regular expression search mode Click, once, on the Replace All button OR several times on the Replace button Notes : The first part, of the search, (?-is) are modifiers, which ensure you that : The search will be performed, in a sensitive way ( = non-insensitive ) The dot special character means a single standard character, only ( not an End of Line char. ) Then, the ^DATA.+ part searches for the exact string DATA, at beginning of line, followed by the longest, non-empty range of any standard character In replacement, the $0 syntax, just rewrites the entire searched string Then the "p:120 - 4 beats" string, preceded with a space character, is simply added, to each matched line An other formulation could be : SEARCH (?-si)^DATA.+\K REPLACE \x20"p:120 - 4 beats" Notes : The \K syntax, at the end of the regex, forces the regex engine to forget everything matched, before \K. So, it only matches the zero length string, at the end of each matched line In replacement, the string \x20"p:120 - 4 beats" is, therefore, added, at the end of each matched line Note that \x20 is, simply, the hexadecimal form of the space character IMPORTANT : Due to the special \K syntax, you must use, exclusively, the Replace All button ! Best Regards, guy038
  • Key names?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • File tabs not movable with mouse

    tab move mouse
    3
    0 Votes
    3 Posts
    2k Views
    AngryGamerA
    @Daniel-Scholten The next version of NPP has moveable tabs in multiline. You can grab a snapshot build here if you’d like to use it now.
  • Auto guide for CSS properties

    Locked
    3
    1 Votes
    3 Posts
    3k Views
    Paul GanP
    ohh okay thank you. then it must be a different software that person is using. i think its called Brackets for mac. will brackets be able to do that?
  • Help manual or Web site

    Locked
    7
    0 Votes
    7 Posts
    8k Views
    decodermanD
    I just checked an older device, the folder is from 2013 but NPP is the current version. Since the docu is so old an no one maintains it, it is likely that @donho no longer includes it in the newer version releases. This could be a project for an enthusiast…
  • Latest notepad ++ version go back to top after scrolling

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Running HTML Scripts

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Per IsaksonP
    See http://chiselapp.com/user/vor0nwe/repository/npp_preview/home
  • python script running

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Scott SumnerS
    This may help: http://lmgtfy.com/?q=stop+cmd+window+from+closing+after+running+python
  • Accidentally "Reload from Disk"

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    Marc OvermanM
    Thanks!
  • Changing color of PHP constants

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied