• How to: Match Nested Pairs closed by END

    8
    0 Votes
    8 Posts
    5k Views
    MAPJe71M
    Hi @guy038, Thanks for sending “A01466.headed.xml.txt”. Confirming your findings with some additions, note the influence of “wrap around”. Tested on a Desktop running Windows XP Home + Sp3 with Windows Classic GUI ;-) Need to get my Windows 10 x64 ready to be able to dig in and debug this! Regex A: (?si)(?<=\W)(man_n)((?:\W+\w+){0,50}\W+)(city_n)(?=\W)|(?<=\W)(?3)(?2)(?1)(?=\W) and Regex B: (?si)(?<=\W)man_n(?:\W+\w+){0,50}\W+city_n(?=\W)|(?<=\W)city_n(?:\W+\w+){0,50}\W+man_n(?=\W) and Regex D: (?si)(?<=\W)city_n(?:\W+\w+){0,50}\W+man_n(?=\W)|(?<=\W)man_n(?:\W+\w+){0,50}\W+city_n(?=\W) Pass i.e. one match even after repeated search: Find w/ wrap around; Using RegexTester (by @Claudia-Frank); Using RegexBuddy w/ boost::regex 1.58-1.59 ECMAScript (default) flavor FAIL: Find w/o wrap around - “Can’t find text” Regex C: (?si)(?<=\W)(city_n)((?:\W+\w+){0,50}\W+)(man_n)(?=\W)|(?<=\W)(?3)(?2)(?1)(?=\W) and Regex G: (?i)(?(DEFINE)(\bcity_n\b)((?:\W+\w+){0,50}\W+)(\bman_n\b))(?1)(?2)(?3)|(?3)(?2)(?1) Pass i.e. one match even after repeated search: Using RegexTester (by @Claudia-Frank); Using RegexBuddy w/ boost::regex 1.58-1.59 ECMAScript (default) flavor FAIL: Find w/ wrap around - toggles between two matches on repeated search (partial and complete text); Find w/o wrap around - “Can’t find text” Regex E: (?i)(?(DEFINE)(\bcity_n\b)((?:\W+\w+){0,50}\W+)(\bman_n\b))(?<=\W)(?1)(?2)(?3)(?=\W)|(?<=\W)(?3)(?2)(?1)(?=\W) and Regex F: (?i)(?(DEFINE)(\bcity_n\b)((?:\W+\w+){0,50}\W+)(\bman_n\b))(?<=\W)(?:(?1)(?2)(?3)|(?3)(?2)(?1))(?=\W) Pass i.e. one match even after repeated search: Using RegexTester (by @Claudia-Frank); Using RegexBuddy w/ boost::regex 1.58-1.59 ECMAScript (default) flavor FAIL: Find w/ wrap around - toggles between two matches on repeated search (partial and complete text); Find w/o wrap around - toggles between two matches on repeated search (complete text and “Can’t find text”) Regards, Menno
  • How to put words into expressions?

    Locked replace regex help replace window
    3
    0 Votes
    3 Posts
    2k Views
    Ge ToG
    Sorry for not giving many detail, but thank you!
  • How do I connect local files to server?

    Locked
    7
    0 Votes
    7 Posts
    5k Views
    Jim DaileyJ
    @Andrea-Barnett I have found WinSCP (mentioned by cmeriaux above) to be very easy to use. You can even configure it to let you edit files on the server using Notepad++ on your local machine!
  • Explore context menu call to NPP no longer opens the selected file

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Harry BinswangerH
    I’m using win 7 32 bit with NPP 6.6.7 Debug Info not showing under ? (but I’ve seen it there before)
  • Multi-instance stopped working

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Replace last value in row with 0

    Locked search & replace regex extended chars
    3
    0 Votes
    3 Posts
    3k Views
    Daniel HolzmannD
    That worked like a charm. Thanks a stack Scott. :) And also thanks for elaborating. That’ll really help going onwards to getting more acquainted with these strings.
  • Notepad++ Crashed entire file is filled up NUL NUL NUL

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Sending Multiple Files to Printer

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Barry AlterB
    I realized it was a duplicate but could not figure how to delete it. Please advise. Thanks.
  • compiling and running a program

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 说句谢谢虽然很简单,做到却是很困难

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    chcgC
    Google translate: Notepad ++ related pages open in mainland China very very slow, i never even opened the page. Not my network of the problem, I do the telecommunications broadband 100M. Would like to ask, how to sponsor the project team to thank the fee? I used notepad ++ for many years, I always wanted to say thank you to you. I reluctantly opened the official website of the donate page, it seems not easy to engage, the euro dollar bitter coins I did not. Can the relevant connection or information, sent to my mailbox dikisite AT outlook.com? Is there an account that the mainland can use? Thank you.
  • Display online lines starting with a string?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Changing font windows 10

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Notepad++ crash removed all backup files

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    livelylinconL
    No there is no dump unfortunately. All the files in the backup folder were present earlier before the crash but then were deleted during crash.
  • How to compare files?

    4
    0 Votes
    4 Posts
    46k Views
    Peter HudsonP
    I tried installing the compare plug-in and after auto-restart the compare plug-in was still not there. So next time I did a manual restart and it worked.
  • Menu Icons plugin loses icons after opening a file

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    YaronY
    Replied here.
  • Customise search engine (Google Search to other search)

    Locked
    2
    0 Votes
    2 Posts
    3k Views
    Scott SumnerS
    @Joel-Korhonen The “Search on Internet” command that is affected by Settings -> Preferences -> Search Engine may be found here: Edit (menu) -> On Selection -> Search On Internet Note that even though the menu path hints that you need a selection active to run the command, if you happen to be searching for a single word, having the caret touching that word is sufficient (i.e., without having anything selected).
  • NP++ v7.3.3 support for windows mapped drives seems broken.

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Claudia FrankC
    @Hardeep-Parmar Could it be that you run into the elevation problem? Meaning the hare was mapped with a different account or elevation level as npp is running? With complete path, do you mean unc path like \server\share\file.txt or by using the drive letter like z:\folder\file.txt? Cheers Claudia
  • Error in Syntax-Highlighting of SQL?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Notepad++ and txt files in Windows 7

    Locked can
    2
    0 Votes
    2 Posts
    2k Views
    decodermanD
    Use the File / Open… Menu Drag and drop the file into Notepad++ Right-Click in Explorer, Open with Notepad++ Right-Click in Explorer, Open with … Setting Notepad as the default Editor for *.txt files: https://superuser.com/questions/474079/how-do-i-set-notepad-as-the-default-editor
  • Regular expression to find two words in files in folder

    11
    0 Votes
    11 Posts
    26k Views
    guy038G
    Hi, @vasile-caraus, Now, I realized that the regex, given in my previous post, (?i-s)(Word1).*?(Word2)|(?2).*?(?1) could be simplified ! Indeed, as I explained, we can’t use back-references, which are not defined if the regex engine choose the second alternative ! But, when the boundaries Word1 and Word2 are not, themselves, regexes ( as, for instance \d+, a..z… ) and rather simple strings, we can use the more simple syntax below : (?i-s)Word1.*?Word2|Word2.*?Word1 Secondly, to select any entire line ( with its EOL characters ) containing the two words Word1 and Word2, whatever their order, use the regex, below : (?i-s)^.*(Word1.*Word2|Word2.*Word1).*\R Best Regards, guy038 P.S. : As we’re rather dealing with exact words, we should use, instead of the two above, the regexes, below : (?i-s)(?<=\W)Word1\W.*?\WWord2(?=\W)|(?<=\W)Word2\W.*?\WWord1(?=\W) and (?i-s)^.*\W(Word1\W.*\WWord2|Word2\W.*\WWord1)\W.*\R