• Regex: Find that words that have html, but doesn't have .dot before html.

    6
    0 Votes
    6 Posts
    279 Views
    Robin CruiseR

    ok, try this solution, very good for all your example and for the 6’ case:

    SEARCH: ^(?=.*https://)(?:(?!\.html).)+$

  • Botimus p

    2
    0 Votes
    2 Posts
    154 Views
    Alan KilbornA

    @paul-horn said in Botimus p:

    rudementary level stuff but ya thanks in advance

    I don’t know what is even being asked here, but regardless it doesn’t sound like it is about Notepad++, the subject of this forum.

    So, I’m going to say that this statement you made is correct:

    so i am sure its going to sound stupid

  • 8.1.9 Dark Mode does not adapt the styles in Style Configurator

    2
    0 Votes
    2 Posts
    208 Views
    PeterJonesP

    @qmcl ,

    Themes contain both foreground and background information. You have to choose a theme that matches your own personal aesthetic for Dark Mode vs Normal Mode. That’s why there’s a “Default” theme for Normal Mode and a “DarkModeDefault” theme for use with Dark Mode.

  • Status bar to display selected word count

    6
    0 Votes
    6 Posts
    978 Views
    Alan KilbornA

    @sharkwsk

    I took the title of this thread to mean that you wanted to count the words in the current selection, but the script counts the number of occurrences of selected text throughout the entire document. Just pointing out the difference in my interpretation in case any future readers do the same.

  • How to Find the language of a document

    4
    0 Votes
    4 Posts
    312 Views
    Elodie CEMOIE

    Thank you very much:C++ is very comfortable, so I stay with it.

    Thanks again

  • Grammatical categories

    2
    0 Votes
    2 Posts
    178 Views
    Neil SchipperN

    @maría-del-mar-muñoz I can’t tell if you’re supposed to be learning about regex, or something to do with language.

    If it’s language, simply searching for ity should get you most of the way there, no?

    If you’re actually supposed to be learning regex, the expression you showed is very wrong. You need to spend some time with the docs, and play around with very simple expressions. Try including one new rule at a time to build competence. I suggest you learn what \w represents, as well as the * modifier. (I could give you more, but you’re a student, you need to study!)

  • 0 Votes
    2 Posts
    391 Views
    Alan KilbornA

    @kelsey-barnes

    I started thinking about replying but there are a lot of uncertainties. For the best help you should read and follow THIS before someone attempts to help you.

  • My API KEY

    2
    0 Votes
    2 Posts
    590 Views
    PeterJonesP

    @p-o-neill ,

    What does this question have to do with the Notepad++ editor?

    If it does have something to do with the editor, explain in detail how, and what steps you are taking in Notepad++ to see this message.

    If it does not have something to do with the editor, then this forum is not the right place for your question.

  • Erro code 2 Alguém pode ajudar?

    2
    0 Votes
    2 Posts
    370 Views
    PeterJonesP

    @odilon-jones-junior ,

    Error code 2 . Can anyone help?

    If this is an error you received while using Notepad++, you will have to be more clear – give us the ?-menu’s Debug Info, and provide screenshots if necessary, and give us enough to be able to see and hopefully replicate your problem, or at least understand where in the Notepad++ process this error is coming from.

    If this is an error that some other program generated, you will have to look elsewhere for the solution. (Please note: that is true even if you’re writing code using Notepad++, and the code you wrote gives Error Code 2, as described in our FAQ.)

  • 0 Votes
    3 Posts
    258 Views
    László BotkaL

    @ludamo-0

    Thank you, works fine.

    Winaero says
    Here you can change the font of statusbars, e.g. the Notepad statusbarfont. It will be also applied to tooltips in many apps. Note that many apps just not support this option. For example, Explorer wil ignore these font settings.

    I’ll see how it works on other places.

    It’s interesting that Notepad++ main statusbar also does not use this.

  • Join lines with specific symbol

    2
    0 Votes
    2 Posts
    734 Views
    Terry RT

    @Salamander931 said in Join lines with specific symbol:

    So basically I want to join line that starts with “\n” with previous line and I don’t want to delete this “\n” symbol. Any ideas how to do this?

    Using a regular expression in the “Replace” function we have:
    Find What:(?-s)\R^(\\n.+)
    Replace With:\1
    So search mode must be regular expression. Click on the “Replace All” button to change the entire file.

    You will see the \\ in the expression because the \ is regarded as a special character, so the additional \ escapes it, or reverts it to a normal character.

    Terry

    PS since you didn’t show the example inside of a black box (read the “read me before posting”) it’s possible this might not work. I suspect you may have leading spaces on some lines.

  • 0 Votes
    4 Posts
    3k Views
    Hellena CrainicuH

    thank you @guy038

  • Editer sur papier sans les retours de ligne

    2
    0 Votes
    2 Posts
    168 Views
    PeterJonesP

    @Michel-AUBINEAU ,

    I really appreciate notepad ++ and I use it as my PHP page editor.
    However despite all the possible settings of the ‘paper’ editions of a document, I cannot produce a ‘paper’ document which would give me:

    line numbers with the start of each line up to the width of the page (ignoring the end of lines … exceeding the width of my A4 page, maybe the first 80 characters!) by not skipping any line, so with a numbering that follow

    As the attached photo:

    sorry, your image didn’t get attached, and I don’t know that I’m fully understanding what you meant (possibly because translation software isn’t perfect). Can you try attaching the picture again? (And make sure you make it clear whether the picture is what you get or what you want.)

  • Need help with regex Chinese numbers

    4
    0 Votes
    4 Posts
    881 Views
    Bạch Lão BảnB

    @Stefan-Pendl @guy038

    Thank you, this problem finally solved :D

    New Project.jpg

  • 1 Votes
    18 Posts
    1k Views
    Terry RT

    @Hellena-Crainicu said in Regex: How to turn more words in the line as if they were seen in the mirror?:

    I thought of a much simpler solution, maybe you can help me a little bit.

    Your idea is actually just a rehash of the ones provided by @guy038 and myself. You have a lot to learn yet about regex, but don’t worry, this is a good way to learn. By trying something, realising it didn’t work, you at least have opportunity to dissect it and understand yet more about regex.

    I use the website rexegg.com as a good source of information. Just be aware that it refers to the many different flavours of regular expressions, not all examples will work in Notepad++. There are also other good sources of regex information available through the FAQ section of the forum.

    In your regex the [A-Za-z0-9\-\'] is almost identical to the \w that we used. You also ask where the other letters went to, in finding only the last letter was returned by using \1 when your find expression had the + at the end. The reason is that at the point the capture group saved any characters the + was outside of the (). So the expression captured a single character, then as the + was processed, it AGAIN captured a character, but in doing so the capture group \1 was overwritten with the latest character. Had you put the + inside of the () you will get all characters returned, but they will be in the original order.

    At the moment I think @guy038 and my solutions are as good as it gets within a regex world. Whilst we have shown it is possible with a regular expression to “mirror” (reverse) a word it does take quite a bit of coding to do so. Python (and other) language solutions work far more efficiently as they will often have higher level functions to take care of most of the hard work. In regex everything must be completed simply.

    Terry

  • 0 Votes
    4 Posts
    3k Views
    PeterJonesP

    @FairbanksBiz ,

    As @Alan-Kilborn said, once you closed the unnamed tab, Notepad++ deleted the session periodic-backup file, and thus “your data is gone”.

    But assuming you had the session-periodic-backup turned on (it is turned on by default), then at one point, Notepad++ was saving copies into the %AppData%\Notepad++\backup\ , as @Terry-R described. So the files were written there at one time, and then deleted. That means, if you are lucky, an application like Recuva might be able to find and undelete the recent periodic backup for you. But with the amount of time elapsed, it’s getting less and less likely. Sorry.

    In the future, if you want to cut from FILE1 to paste into FILE2, a better sequence would be:

    save FILE1
    I understand you might not have a named file for FILE1… but if this is data that is critical enough to you that you are desperate to recover it, then it should be critical enough to use up some disk space while you are in the middle of manipulating it. cut from FILE1 paste into FILE2 make sure FILE2 looks like you expect save FILE2 go back and save the empty FILE1 close the empty FILE1 use Windows Explorer or other filesystem tool to delete the empty FILE1

    …That way, any time before step 6, you can go into FILE1’s tab and UNDO to get back the original file.

    FAQ: Periodic Backup vs AutoSave Plugin => Describes the builtin “Session Snapshot and Periodic Backup” feature and compares it to the AutoSave Plugin Recuva => completely unaffiliated with Notepad++ or the Notepad++ Community Forum; listed as an example of file recovery software for Windows with no guarantee or warranty, explicit or implied, by its listing in this post
  • Intel Hex not higlighting

    29
    0 Votes
    29 Posts
    4k Views
    David GriffithsD

    @PeterJones @Alan-Kilborn Apologies Peter for responding to the wrong person.

    Yes I see what you illustrated on my laptop but not on my desktop.

    I just updated styers.xml on my desktop and all is wonderful.

    Many thanks,
    DG

  • Setting to enable backward search with RegEx enabled

    3
    0 Votes
    3 Posts
    349 Views
    Gary Winey 0G

    @PeterJones Thank you very much!

  • Set default extension in rename window

    3
    0 Votes
    3 Posts
    163 Views
    kiynK

    Feature request submited on github:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/10729

    Thanks

  • ColdFusion Lexer Crashes NPP after 7.5.9

    1
    1 Votes
    1 Posts
    238 Views
    No one has replied