• Deleting sections.

    8
    0 Votes
    8 Posts
    2k Views
    guy038G

    Hi, @stuart-benson, @terry-r, @alan-kilborn, @peterjones and All,

    OK, I see… So, the best option is to use the @terry-r method, as there are several zones [.........] : per line :

    Open the Mark dialog ( Ctrl + M )

    Uncheck all box options

    SEARCH (?-s)(?<=\x5B").*?(?="\x5D)     if you use regular quotes "

    OR

    SEARCH (?-s)(?<=\x5B“).*?(?=”\x5D)     if you use smart quotes and

    Check the Purge for each search and Wrap around options

    Select the Regular expression search mode

    Click on the Mark All button

    Click on the Copy Marked Text button

    Open a new tab ( Ctrl + N )

    Paste the clipboard’s contents ( Ctrl + V )

    Voila !

    You’ll get the expected text :

    Hi, team. We’re looking at”,“our rush defense. Today’s session is going to”,“look at our outside alignment, and why that’s important”,“for a rush defense. OK team, what is an”,“outside alignment? The way you come up like”,“in the defensive line? How does it relate”,“to an opposition? Stand up on the far shoulder”,“from where the ball is. Most teams that”,“do a rush defense start on that outside”,“shoulder, why do you reckon? I think it requires”,“a lot of skill from the player”,“catching the ball to know what’s”,“going on that side if the ball is coming this way. So probably that’s why”,“it’s important to step on the far shoulder. Yeah, I like that. it makes that attacker”,“have to use far more skill. OK, men. So let’s just presume”,“I’m the attacker. We’ve got defender”,“1 and defender 2. So who’s your man, here? Who’s your man, Jay?

    If your prefer join all these different lines into one line only :

    Select all these resulting lines ( Ctrl + A )

    Edit > Line Operations > Join Lines ( Ctrl + J )

    Cheers,

    guy038

  • Removing all texts prior to a character in a string

    5
    0 Votes
    5 Posts
    3k Views
    Alan KilbornA

    @jeffvb9 said in Removing all texts prior to a character in a string:

    This doesnt seem to be working.
    Also we could look for /v and remove everything before and /v if possible.

    That’s really just a restatement of the same problem statement from before, which you claim “isn’t working”.

  • The quotation mark expands the folded code

    4
    1 Votes
    4 Posts
    410 Views
    Alan KilbornA

    For the Powershell case, there’s a Notepad++ “issue”, see HERE.

  • Search positive + egative (in-/exclude)

    9
    0 Votes
    9 Posts
    2k Views
    Alan KilbornA

    @Uwe-Recknagel

    As an additional hint, the information found HERE seems directly applicable to an aspect of the problem you are trying to solve.

  • (?(backreference)true-regex|false-regex)

    14
    0 Votes
    14 Posts
    3k Views
    guy038G

    Hi, @wing-yang, @peterjones, @mapje71 and All,

    In the last part of my previous post, I proposed a regex which does not use any conditional statement :

    (?x) ^ [^(\r\n]* (?: \( (\d{3}) \) | (?1) - ) (?1) - \d{4}

    However, this regex can simply be improved by using the @peterjones’s look-behind structure, instead of the negative class character :

    (?x) (?<!\() (?: \( (\d{3}) \) | (?1) - ) (?1) - \d{4}

    which allows to get several occurences in a single line, as below :

    abc (123)456-7890 def 123-456-7890 ghi

    BR

    guy038

  • How find in selection by key alt? Hello.

    10
    0 Votes
    10 Posts
    558 Views
    Alan KilbornA

    @PeterJones said in How find in selection by key alt? Hello.:

    But trying to search across multiple rows in the rectangle

    I would think that anything the developers implemented for rectangular selection searching/replacing could have the caveat that each row (the selected part) is independent and you can’t search across rows with it.

    And that’s what my replace-all script assumes as well.

    IMO, that kind of thing (the possibility to search/replace across rows defined by the rectangular selection), is NOT what has prevented the developers from adding the feature to date.

  • Different password window than normal when using Nppcrypt plugin

    2
    0 Votes
    2 Posts
    236 Views
    PeterJonesP

    @Peter-Hellen ,

    Are you on the same computer, or different computers? Or did you re-install Notepad++ or update NppCrypt between uses?

    I seem to remember that NppCrypt did a major update at some point…

    … searching for NppCrypt posts … ahh, there, this post links to a FAQ by the NppCrypt author that might be of use to you.

  • Cannot Install LuaScript

    5
    0 Votes
    5 Posts
    396 Views
    LonghornLouL

    @Alan-Kilborn Thanks - that worked a treat. My problem was not that I couldn’t read but that I thought the two files had to replace others in the zip file I had downloaded and there were no .dll files to replace.
    Again, thanks for your help!

  • Replace timestamps notepad++

    7
    0 Votes
    7 Posts
    636 Views
    Paul MatteschkP

    @PeterJones the expression worked, i had to check “Reguläre Ausdrücke” instead of “Erweitert”. thanks Jones =)!

  • Will notepad be available for mac system?

    2
    0 Votes
    2 Posts
    199 Views
  • Predatory ads on download page.

    2
    1 Votes
    2 Posts
    374 Views
    Alan KilbornA

    Yes. I’ve pointed this out before, myself.
    I think the predatory ads key on the real word “download” on the site, and do their “dirty work” because of that.
    It is often a sad world we live in. :-)

  • 0 Votes
    6 Posts
    2k Views
    PeterJonesP

    @Steffan-Rhoads ,

    I created issue #12079 asking for a fix to allow temporarly-missing files to stay in the session.

  • Unable to use MatPlotLib in Python Files

    6
    0 Votes
    6 Posts
    696 Views
    bungoscrungusB

    @PeterJones I didn’t think of checking the command line, thanks! The error appeared there, too. This might be the first time I’ve been glad to see a module error – thank you!

    It turns out a program I had also had python.exe, and Notepad++ was using that Python instead. Uninstalled the program, MatPlotLib works perfectly! Thank you!

  • remove Space & Break line while Copying a line in notepad++

    14
    0 Votes
    14 Posts
    4k Views
    Alan KilbornA

    @Andi-Kiissel said i:

    With WordWrap=ON this script behaves differently than Scintilla End/Shift+End default, but that’s OK for me

    I considered this case, but I didn’t see an easy way to handle it.
    As line “breaks” caused by word-wrap are artificial, it would be extremely rare for me to want to move to one.
    So wrap consideration got defeatured from the spec for this problem. :-)

  • Plugin or UDL to color whole lines by regexp?

    3
    0 Votes
    3 Posts
    306 Views
    Yuval KfirY

    @PeterJones Thank you! That is exactly what I needed.

  • Notepad ++ install won't run on this computer

    4
    0 Votes
    4 Posts
    1k Views
    Terry RT

    @Martin-Mortensen said in Notepad ++ install won't run on this computer:

    I just got a new computer and tried to install Notepad++ I get the message “This app can’t run on your PC” I’m trying to run npp.8.4.4.Installer.x64.exe.

    And I was wondering if possibly (given it’s a new PC) that Windows is running in S mode. If so, only apps from the Microsoft Store will install. However the error message (if what you gave is accurate) doesn’t appear to match what I thought it would say.

    However to check, read this Microsoft page.

    Terry

  • How to mark partially duplicated lines

    15
    0 Votes
    15 Posts
    6k Views
    Faraz KetabiF

    @Faraz-Ketabi
    Thanks a lot.

  • scaling / math. operations with colums

    2
    0 Votes
    2 Posts
    358 Views
    PeterJonesP

    @qwertz_1234 ,

    Natively, no. Notepad++ is a text editor, not a spreadsheet. Open your text file in Excel or OpenOffice/LibreOffice Calc or some other spreadsheet application, do the math, and save it again.

    If you are willing to use a scripting plugin for Notepad++, it can be done, with more work. The Mathematical Replacement FAQ has all the details you need if you are willing to put in the effort yourself.

  • Jump to specific lines

    8
    1 Votes
    8 Posts
    34k Views
    Alan KilbornA

    When I said before:

    There is a method for organizing related scripts into subfolders, but it requires some additional code in startup.py to make that work.

    For more detail on that, see HERE.

  • Find and replace number incrementally

    2
    1 Votes
    2 Posts
    235 Views
    EkopalypseE

    @Cubilas

    I assume you want something like this.