• Copy and Replace

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP
    Your spec is rather ambiguous, but I think this will do what you asked for (in that it mimics the output): Find what : (?-s)^(.*$\R)^(EN)$ Replace with : $1New text $1$2 ☑ Regular Expression Make sure you’re on the Find in Files tab Find details: (?-s) = make sure . does not match EOL characters (this will ensure that the next parenthetical will only match one line’s worth () = Everything inside parentheses gets put into the next $# variable ^ = matches the beginning of a line $ = matches the end of a line \R = matches the EOL character sequence (whether it’s a linux LF or windows CR+LF or old mac CR) ^(.*$\R) = combining concepts above: match all the text between the start and end of line, plus the EOL sequence, and store it all in $1 ^(EN)$ = match the entire line matching EN, and store EN in $2 Replace details: $1: quote the values in $1, so it will be the fifth line and its new-line sequence new text $1: add “New text”, followed by a space and the full contents of the fifth line (including its newline) $2: quote the EN P.S. : (paraphrasing @guy038, the forum’s regex guru, who compiled these great regex resources, but hasn’t shared them in this thread yet): Here is a good starting point for NPP users unfamiliar with regular expression concepts and syntax: http://docs.notepad-plus-plus.org/index.php/Regular_Expressions Modern Notepad++ (since v6.0) uses the Boost C++ Regex library, v1.55.0 (similar to the Perl Regular Common Expressions (PRCE), v5.8): search syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html replace syntax: http://www.boost.org/doc/libs/1_55_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html Other sites with valuable regular expression information include: http://perldoc.perl.org/perlre.html http://www.regular-expressions.info http://www.rexegg.com
  • Custom keywords for "folding"

    Locked
    1
    0 Votes
    1 Posts
    937 Views
    No one has replied
  • Possible syntax color logic bug for ASP in all versions?

    Locked color syntax asp
    3
    0 Votes
    3 Posts
    1k Views
    mushu999M
    @Savio-Tamara-Lobo you didn’t post anything?
  • Risks with using Notepad++

    Locked risks risk assessment security
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Update 7.5.6 does not allow me to instal XMLtools Plugin

    Locked
    2
    1 Votes
    2 Posts
    3k Views
    S
    @Bugnerová-Pavla Consider these statements as Laws : 32-bit plugins are not compatible with 64-bit executables 64-bit plugins are not compatible with 32-bit executables Either go with: 32-bit executable (notepad++.exe) and 32-bit plugins or 64-bit executable (notepad++.exe) and 64-bit plugins Note: x86 is another term for 32-bit (means the same thing, in this context at least)
  • 0 Votes
    3 Posts
    2k Views
    Somil PatniS
    My problem got resolved. I just chose the use all sub folders option and it started working :)
  • Notepad++ shows numbers as letters

    Locked np++ bug letters error font
    1
    0 Votes
    1 Posts
    928 Views
    No one has replied
  • Plugin convert problem

    7
    1 Votes
    7 Posts
    4k Views
    Hakan ToptasH
    I checked the converter/issues, it was a known issue and they cannot solve I guess. I tried different sums but sum1 seems to be the correct one. Best
  • Open a DLL file

    Locked
    2
    0 Votes
    2 Posts
    5k Views
    guy038G
    Hello @torkr, Have a look to that thread : https://notepad-plus-plus.org/community/topic/15515/can-not-open-file-strt_replaces/4 And also : https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4354 Best Regards, guy038
  • Open file favorites

    Locked
    3
    1 Votes
    3 Posts
    2k Views
    General CoderG
    TY! Works now :)
  • Struggling to get NPPExec 64 to run Lua

    notepad++ 7.5.6 nppexec 64-bit
    4
    0 Votes
    4 Posts
    3k Views
    M
    My apologies. I thought I had both site’s forums set up to notify me by email when there was a response, but I was mistaken. I’ll look at getting that more recent version of NPPExec 64 and see if that solves my problem.
  • 0 Votes
    2 Posts
    1k Views
    S
    @Andrzej-Zoń This capability is not native to Notepad++. However, this thread has some ideas that may be of interest…
  • How to remove SAVE ALL button?

    Locked
    8
    0 Votes
    8 Posts
    5k Views
    maknolM
    I found x64 version, https://sourceforge.net/projects/npp-customize/ But this system not allowing me to post or update until someone else write a post. Now all is OK! Thank you!
  • Best places to use page-wrap? (NEWB)

    Locked
    2
    -1 Votes
    2 Posts
    1k Views
    S
    @Emma-Banks This is not a Notepad++ question. Please confine topics here to discussion about Notepad++. Thanks!
  • 0 Votes
    3 Posts
    2k Views
    J
    @Rangan-Roy Explore the Settings->Style Configurator dialog box. Note you can change the way various language-specific items appear.
  • Select Large Area

    Locked select large ar
    3
    0 Votes
    3 Posts
    5k Views
    J
    @Randy-Reist You can also mark a small bit of the text, then use the mouse to pull the scroll bar down to where you want to end the selection. Hold down the Shift key and left-click the mouse to extend the selection to wherever your mouse cursor is.
  • **Plugin Manager**

    Locked plugin manager
    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP
    Due to the embedded ad (see NppPluginManager issue #80 for bandwidth needs requiring the ad), Don Ho (the author of Notepad++) has decided to stop bundling the Plugin Manager. As of this mid-January post, he says he’s working on his own embedded plugin manager, but with no estimated ship date. For now, you can download the Plugin Manager from @bruderstein’s releases page and do a manual installation.
  • How to replace a value after a statement?

    Locked replace value statement
    3
    0 Votes
    3 Posts
    2k Views
    RathardR
    Thank you so much, you are a saviour
  • How to "Replace" in block mode

    Locked
    2
    1 Votes
    2 Posts
    3k Views
    S
    @George-Atkins The short answer is, in general, you can’t do this. Without knowing more details of your scenario, perhaps the best that can be offered up is to cut your column block to a new editor tab, perform your replace operation there (on that entire doc), rectangular-select the new contents, and copy and paste back into the original doc. Of course, if you provide more detail, perhaps a regular-expression search-and-replace operation could be crafted to do what you need, or possibly the description would allow other solutions to be brought to light…
  • how to comment url with spaces?

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