• Regex: Put a comma on REPLACE html tags

    15
    0 Votes
    15 Posts
    957 Views
    guy038G

    Hello, @vasile-caraus and All,

    In fact, I’m presently on holidays ! Thus, my concentration is not at top level ;-))

    So, here is the true story ! When using, for the second regex S/R, the simplified form :

    SEARCH (?s)<meta\x20name="keywords"\x20content="\K(\w+)|\G[^\w\r\n]+(\w+)

    The first alternative <meta\x20name="keywords"\x20content="\K(\w+) should be used first, in order to detect the first word after the string content="

    However, if before running the S/R, the caret is at a location before some non-words chars, followed themselves by some words chars, then the regex engine wrongly selects the second alternative , due to the \G syntax

    So, this new simplified syntax can be used if the initial location of the caret is on an pure empty line. Indeed, as the initial \G location must not be followed with, both, \r or \n ( \G[^\w\r\n]+...... ), this means that, necessarily, the next match will come from the first alternative of the regex, which is the correct solution !

    But, of course, this new simplified regex is, then, no related, anymore, to a previous <title>......</title> tag !

    BR

    guy038

  • Files History

    2
    0 Votes
    2 Posts
    172 Views
    Alan KilbornA

    @Kendall-DeMott said in Files History:

    it forgets the ones used a lot, and retains some of the oddball ones

    If you use them “a lot”, wouldn’t they be in the 15 ?

    Is there anyway to delete items of of the search history window?

    Not on-demand, no.

    Or a way to put often used phrases in there like favorites list, etc.

    This is kind of a frequently asked for feature.
    Sadly, no one has come up with a great idea for implementing it, or perhaps no developer has tackled it.
    I think a workaround is to keep a file tab dedicated to such “phrases”.

    Notepad ++ and Admin mode keep different search histories, it would be nice if they were synced (same).

    That seems like it would be a security breach.

  • How can change write method ?

    2
    0 Votes
    2 Posts
    129 Views
    Alan KilbornA

    @Muhammad-Al-A3sar

    We either have a case of CLICK HERE or if not that a case of CLICK HERE.

  • Fast scrolling

    1
    1 Votes
    1 Posts
    299 Views
    No one has replied
  • File too big for notepad++

    3
    0 Votes
    3 Posts
    1k Views
    Terry RT

    @Amsja-Mull said in File too big for notepad++:

    I’ve read that notepad++ is capable of handling 2gb

    Additional information can be found in some old posts:
    https://community.notepad-plus-plus.org/topic/11803/feature-request-larger-file-sizes-allowed/2

    https://community.notepad-plus-plus.org/topic/18950/file-size-problem-file-is-too-big-to-be-opened-by-notepad/6
    notes that having a file type of .txt is likely to allow a larger file to be opened than other file types which are associated with “lexers”.

    https://community.notepad-plus-plus.org/topic/16960/text-limit/16
    where it is noted that scintilla (upon which Notepad++ is built) has a hard limit of 2GB. Maybe this is what you thought would allow your 600MB file to work.

    However this is more a “theoretical” number that can NEVER be surpassed. However as I stated before the environment Notepad++ is running in and even the file type have a lot to play in how successful you will be in loading such a file.

    Good luck
    Terry

  • Find previous not working on win32 notepad++ 7.8.x

    2
    0 Votes
    2 Posts
    132 Views
    PeterJonesP

    @Sherif-Hemida ,

    It was an intentional change in v7.8.7, because find-previous doesn’t work how you think it will with regular expressions enabled. Find previous is still enabled for regular searches.

    See the instructions in the official docs for a config file change to make it work with regex, with the caveat that reverse-direction searches with regex sometimes yield unexpected results: https://npp-user-manual.org/docs/preferences/#preferences-for-advanced-users

  • Starting notepad++ from Windows CMD, CMD doesn't close anymore ...

    3
    0 Votes
    3 Posts
    515 Views
    volker001V

    Thank you, for your answer,

    now i have checked a liitle bit more and i found the master.bat start with an mtee splitter.
    (http://ritchielawrence.github.io/mtee/)
    “test.bat” 2>&1 | mtee_versions\mtee.exe /C “test_bat.log”

    Without the splitter notepad++ works as expected.
    So i think there changes from microsoft in windows.

  • Replacing with \n on a large file get the Notepad++ application hang

    2
    0 Votes
    2 Posts
    179 Views
    EkopalypseE

    @Gabriel-Pelayo

    how do you replace it? Can you give us a screenshot from your
    replace dialog? In addition, can you post the debug info from the last menu, the ? menu?

  • Copy as path puts last file first in a pasted list

    3
    0 Votes
    3 Posts
    759 Views
    astrosofistaA

    Hi @Michael-Charney

    Try to select all files in reverse order. For example, if I want to get the files ordered as 1-3, I select first the 3, then the 2 and finally the 1. These will be copied in Notepad++ in order 1-3.

    Tested and worked in my Windows 7.

    Take care.

  • Macro problem with ctrl + x / ctrl + v

    5
    0 Votes
    5 Posts
    521 Views
    NoobsteinN

    Thanks for the answers
    It worked by editing %AppData%\Notepad++\ shortcuts.xml and then merging the pieces

  • RegEx Is there a solution here?

    8
    0 Votes
    8 Posts
    259 Views
    Alan KilbornA

    I like the test word chosen here.

  • Find Duplicate lines by the part of line and keep one of them

    13
    0 Votes
    13 Posts
    6k Views
    Terry RT

    @Kosmos-Huynh said in Find Duplicate lines by the part of line and keep one of them:

    but it does not work in my case

    I’m not surprised the regex you showed didn’t work. The example data is just a bit too different and unless you know what each part of the regex does you could well find it doing more damage to your data than good.

    As this conversation is 3 years old and your request is different enough can you start a new post? By all means reference back to this if you want but in reality it needs dealing with as a separate conversation.

    Also when including sample data please use the </> button (which you will see above the window where you type) around the examples, this prevents any characters typed from being altered by the interpreter in which you type. Please include more examples as what you have is insufficient to help describe the reason why 2 lines should be deleted when all 3 have the same word but all 3 have different numbers following. Describe more fully the requirement a line must have before it can be described as a “duplicate” and therefore deleted along with the line before it.

    Terry

  • TAB setting

    2
    0 Votes
    2 Posts
    167 Views
    Terry RT

    Look at Preferences, Language. Then on the right side you can either select according to the file type/programming language type or override and set your own; in this case; 8 char tabs.

    Terry

  • Log file colour coding based on error level (debug,info,error etc)

    2
    0 Votes
    2 Posts
    5k Views
  • How to I move a line with Specific character

    5
    0 Votes
    5 Posts
    865 Views
    Jovan PrlicJ

    @Terry-R said in How to I move a line with Specific character:

    (?-s)^.+\R#\R?

    It worked, THANK YOU SO MUCH!!

  • UDL help

    3
    0 Votes
    3 Posts
    163 Views
    Charlie BrownC

    thanks, I’ll look into that.

  • RegEx: step by step

    7
    0 Votes
    7 Posts
    530 Views
    Terry RT

    @Terry-R said in RegEx: step by step:

    I’m not entirely happy with the replacement field, for 2 reasons.

    Now that I’ve had a bit more time to look at the question my final regex is:
    Find What:\w+
    Replace With:\u$0

    As the \u will ONLY convert the first character of anything following it to upper case we don’t need to worry that $0 actually contains the entire “word”, not JUST the first character.

    Terry

  • page rendered in notepad different when rendered on line

    2
    0 Votes
    2 Posts
    224 Views
    Alan KilbornA

    @Bill-Rich

    Notepad++ doesn’t “render” such things, so I think we have a case of CLICK HERE.

  • 0 Votes
    12 Posts
    2k Views
    WolfgangHGW

    @Alan-Kilborn Yes I mean the Notepad++ developers ;-).
    I don’t know whether this is an issue with Notepad++ or with Winzip. If anyone has hints on how to dig deeper in this (e.g. logging), I am willing to help. But I don’t want to build and debug it myself - my C++ knowledge is quite outdated…

  • why notepad++ dosent show my language?

    4
    0 Votes
    4 Posts
    474 Views
    andrecool-68A

    The “utf-8” encoding supports Hebrew well))