• Regex: Replace html links framed by html comments

    2
    0 Votes
    2 Posts
    173 Views
    Alan KilbornA

    @Robin-Cruise said in Regex: Replace html links framed by html comments:

    Maybe someone will need this solution

    Let’s please not post solutions to random things not requested by anyone.
    There could be an infinite amount of such things.

  • Add hyphenated word to Hunspell dictionary

    3
    0 Votes
    3 Posts
    326 Views
    Bill RobertsB

    Thanks Terry, that did the trick!

  • 0 Votes
    8 Posts
    353 Views
    Ramanand JhingadeR

    @PeterJones It worked for the files in my folder. Thanks!
    @guy038 I thank you also. You are terrific - the Regex Guru as some are calling you!
    @Alan-Kilborn I searched online and could not find a solution which is why I asked here. Please don’t get irritated. Thanks!

  • Regex: Find duplicate tags/words from some tags

    7
    0 Votes
    7 Posts
    2k Views
    Robin CruiseR

    Much simple solution:

    Search: (<p class="text_obisnuit2"><em>)(.+)</em>(.+)<em>(.+)(</em></p>)
    Replace: \1\2\3\4\5

  • Notepad++ crash by using NppFTP on Android Hotspot

    4
    0 Votes
    4 Posts
    332 Views
    gstaviG

    if the Notepad++ process crashes then there should be “something to do”. Most likely from NppFTP side. It is OK to fail to connect but it should not crash the process.

    Never used NppFTP but if its developer is active and responsive you should contact him and seek help. The ideal way would be for you to provide an easy way to reproduce the issue but that not always feasible. Some developers may provide you with an extra verbose debug version where you reproduce the problem by yourself and provide debug data.

  • openSession from dblclick

    7
    0 Votes
    7 Posts
    535 Views
    Alan KilbornA

    @MysticJay

    I’m not really following your meanings.

    but also forget al pending changes to the files is that session

    What does that mean?
    If you are invoking Notepad++ (from a no-Notepad++ -running situation), what pending changes would there be to “forget”?

    commandline parameters do not seem to be passed correctly to NPP when launching from Windows dblclick

    Well, my first comment on this would be “Notepad++ cannot control how it is invoked, so I’d think if command line arguments are not passed correctly, you should think about blaming whatever is running Notepad++, not Notepad++ itself”.

    However, there should be an easy test for this, as in your earlier post you said:

    The commandline is fine in CMD

    How could I debug what is passed to NPP?

    Do this:

    Close Notepad++ and then invoke the CMD command line and then go to the ? menu in Notepad++ and choose Debug Info. This will show the Command line: that Notepad++ was run with. Copy this data somewhere else.

    Then close Notepad++ and repeat the Debug Info check after running with your “double-click” setup. Compare the results with the CMD line approach’s results.

    But as I learned this is no BUG or feature request forum so there will be no one to fix this.

    We haven’t even determined what there is to fix yet.

  • 0 Votes
    6 Posts
    1k Views
    guy038G

    Hello, @robin-cruise, and All,

    I suppose that, if the sentence contains a single word, followed with a full stop like Paul., it should not be concerned by the replacement, ins’t it ?

    So, the correct regex S/R is :

    SEARCH (?-s)^(\w+)\b(.+)\b(\w+)\.$

    REPLACE \3\2\1.

    Notes :

    The \b assertions ensure that the group \1 and group 3 contain true words, i.e. the first and last character of group 2 are non-word characters

    In group 2 we just can use a greedy quantifier + ( not +? ) as we’re looking for the last word of current line, anyway !

    As the search regex contains three expressions with the + quantifier, this means that each group is not empty. And, in case of the minimal sentence Paul John., the group 2 is just the space char between the two firstnames !

    Best Regards,

    guy038

  • reorganize numbers/words inside punctuations

    3
    0 Votes
    3 Posts
    197 Views
    Handa FlockaH

    Thank you, it has been fixed using some other form, with:

    hello: +(?:\w+\|){N}\K(\w+)\|(\w+)

    to replace with

    $2|$1
  • Menu -> File -> Save session (is doesn't save the Bookmarks)

    10
    0 Votes
    10 Posts
    458 Views
    mere-humanM

    @Vasile-Caraus Works for me in version 7.9.5.
    Which version do you use?
    By the way, if the file was modified since the session has been saved, then the bookmarks would be off.
    This is expected, because the position of the bookmark is a line number. More lines - wrong position.

  • Notepad ++ version 7.9.5

    4
    0 Votes
    4 Posts
    1k Views
    PeterJonesP

    @Thiago-Sasasinho ,

    The problem is, many of your words appear to be English, but when put next to each other, the phrase or sentence doesn’t immediately make sense.

    If English is not your native language, you might want to try writing in your native language, and plug it into an online translator like translate.google.com or deepl.com and paste the English results in the forum. (Before pasting here, you might want to paste it back into the English->NativeLanguage form, and see if it still makes sense.) If English is your native language, then I’m sorry, but we cannot understand you, and you are going to have to work on making sure there aren’t any typos, and that terms that take a special knowledge set are defined, and that you generate full English sentences, with clear subjects, verbs, and objects.

    On to specifics:

    does anyone use Notepad in the Iq option

    I assume you mean Notepad++, not Notepad, because those are two different applications, and this forum is about Notepad++.

    What is “Iq option” or “Iq option platform”?

    what are the commands used to make scrip

    What is “scrip”, and why are we expected to know what commands make it? Or is that a typo for “script”?

    type command of confluences between indicators

    I have no clue what that is trying to say

    and as if it were a hack, and robot

    again, no clue what this is intending to say.

    If I were to hazard a wild guess, I would say that “Iq option” is some other software platform that has a scripting or configuration or option language. So you can edit the text source code for that language in Notepad++. Even more wild guessing, after writing the script in Notepad++, you want to try to run it through whatever compiler / interpreter / executable comes with “Iq option”. If this is the case, then this Forum has FAQ that explains “How do I use Notepad++ to Compile my Source Code (or Convert My Text)?”.

    I hope that helps.

  • remove letters only in text

    3
    0 Votes
    3 Posts
    8k Views
    Handa FlockaH

    @PeterJones said in remove letters only in text:

    [[:alpha:]]

    @PeterJones It worked
    Thank you! and for the explanation I will try to learn from it

  • Reorganize numbers

    4
    0 Votes
    4 Posts
    231 Views
    Handa FlockaH

    Thank you!! @guy038
    I got it and I got the idea thanks for further explanations

  • Not able to install XML plugin ()

    16
    0 Votes
    16 Posts
    22k Views
    PeterJonesP

    @Arif-Syed ,

    Your version (v7.3.2) is very out-of-date. The reason the sequences above didn’t work for you is because the plugin hierarchy changed in v7.6.3 in 2019 (well, it started changing in v7.6 in late 2018, but 7.6-7.6.2 are not recommended due to instabilities).

    Future readers: only follow @Arif-Syed’s procedure if you have a version v7.5.9 or earlier; it will not work for you if you have v7.6.3 or later.

  • no next line in results?

    5
    0 Votes
    5 Posts
    354 Views
    Alan KilbornA

    @guy038

    In light of Guy’s solution (nice one, too!), when I said earlier:

    you can’t use the Search results window for copying multline match data … it only displays the first line of a multiline match.

    This is still a true statement.

    What Guy’s solution to the problem does is create a second match.
    As this match is (somewhat) independent of the first, it DOES appear in the Search results window and thus can be copied from there, as originally desired.

  • multiple text replacing with different text

    20
    0 Votes
    20 Posts
    6k Views
    Handa FlockaH

    @PeterJones After your update it’s a piece of art now!
    thanks again

  • File Assicoacion.

    3
    0 Votes
    3 Posts
    272 Views
    AndreiA

    Thansk you ! I make registry in HKLM\Software\Classes with GPO. Problem solved.

  • Regex: Replace after I between tags

    3
    1 Votes
    3 Posts
    177 Views
    Alan KilbornA

    Plus, it doesn’t work like you say anyway. :-(

    If you use literal ( or ) in your replace expression, you must escape them as \(, \) or they do not appear!

  • Delete everything except a word

    6
    0 Votes
    6 Posts
    3k Views
    Alan KilbornA

    @P4R0D-Y

    I gave you the answer to exactly what you asked here.

    Now, if someone else interpreted your question differently and that interpretation lined up with yours, and worked for you, that’s great I guess.

    Try to ask better questions, I guess is the moral of the story.

  • Unable to Install plugins from plugin Manager in Notepad 7.9.5

    9
    0 Votes
    9 Posts
    4k Views
    PeterJonesP

    @Raja-Siva said in Unable to Install plugins from plugin Manager in Notepad 7.9.5:

    How do I correct Plugin Manager.

    As I said already, it’s not the Plugin Manager, which hasn’t worked with Notepad++ for years. It’s the Plugins Admin, as your screenshot clearly showed.

    And there’s nothing to correct: as far as I am aware, the Plugins Admin works just fine. Either you need to set your proxy, or you need to fix your permissions, or if you’re in some very strange networking situation you will have to manually download the plugins and install them yourself. But Plugins Admin works as designed, and nothing you have shown indicates there is anything wrong with it. If you can show that Plugins Admin is doing something wrong, then we’ll work with you to ask the developers to correct the problem; but you haven’t shown that yet.

  • UDL 2.1: When an Operator is also a Delimeter

    3
    0 Votes
    3 Posts
    388 Views
    Erin D. SmaleE

    @PeterJones - Thanks very much for the tip. I’ll give this a shot over the weekend and post results in case others have the same problem.

    Cheers,
    -Erin