• Login
Community
  • Login

Delete Chinese text after comparing two XML documents

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
31 Posts 3 Posters 5.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    andrecool-68
    last edited by Feb 25, 2019, 11:19 AM

    Here one regular expression is mistakenly duplicated. But in the macro everything is correct.
    " name="(.*?)[\x{3000}-\x{303F}\x{4E00}-\x{9FEF}](.*?)\|
    " name="

    1 Reply Last reply Reply Quote 1
    • A
      andrecool-68
      last edited by Feb 25, 2019, 11:28 AM

      Need to test such option, and compare their work.
      (?-s)\x20(value|name|title|message)="\K.*?[\x{3000}-\x{303F}\x{4E00}-\x{9FEF}].*?\|

      1 Reply Last reply Reply Quote 3
      • G
        guy038
        last edited by guy038 Feb 25, 2019, 1:11 PM Feb 25, 2019, 12:57 PM

        Hi, @andrecool-68,

        I read your last posts with the different regeges and was about to suggest you such a regex, which combines all cases :-))

        An other syntax, which allows, the step by step replacement, with several clicks on the Replace button, would be :

        SEARCH (\x20(value|name|title|message)=").*?[\x{3000}-\x{303F}\x{4E00}-\x{9FEF}].*?\|

        REPLACE \1

        Cheers,

        guy038

        P.S. :

        BTW, don’t you have some ski resorts, in Israel ? I’m thinking of the Mount Hermon Ski Resort !

        A M 2 Replies Last reply Feb 25, 2019, 2:53 PM Reply Quote 2
        • A
          andrecool-68 @guy038
          last edited by Feb 25, 2019, 2:53 PM

          @guy038
          Small mountains we have in Israel but there is snow is very rare, and my friend flies every year to ski in Italy. And for me the best rest is fishing with a fishing rod.

          M 1 Reply Last reply Feb 25, 2019, 3:01 PM Reply Quote 2
          • M
            Meta Chuh moderator @guy038
            last edited by Meta Chuh Feb 25, 2019, 3:08 PM Feb 25, 2019, 2:56 PM

            @guy038

            Here is my modified “slopes map” picture, which shows the “Meribel - Les Menuires - Val Thorens” areas and part of Courchevel, on the left !

            this is beautiful 😃.
            next winter, as soon as my youngest son is old enough to have sufficient body control to enjoy it, i have to go skiing again, after a 3 year abstinence (far too long).

            thanks for sharing.
            short notices like that make this place pleasantly human to me, with a familiar atmosphere i enjoy. 👍

            ps:

            Please, not a “regex guru”

            may i use “regex master”, or “sensei regex san”, or “darth regex” instead ? ;-)

            1 Reply Last reply Reply Quote 1
            • M
              Meta Chuh moderator @andrecool-68
              last edited by Meta Chuh Feb 25, 2019, 3:01 PM Feb 25, 2019, 3:01 PM

              @andrecool-68

              this lake is very, very beautiful as well, i want to go there too.

              … hmmmh … judging my reactions to the pictures from both of you, i guess that i urgently need a vacation 😂

              A 1 Reply Last reply Feb 25, 2019, 3:06 PM Reply Quote 1
              • A
                andrecool-68 @Meta Chuh
                last edited by Feb 25, 2019, 3:06 PM

                @Meta-Chuh
                I do not go far to rest, health problems, and 40 kilometers to the lake I can do. When I was healthy and strong …long thought took a plane ticket and flew!

                M 1 Reply Last reply Feb 25, 2019, 4:09 PM Reply Quote 1
                • M
                  Meta Chuh moderator @andrecool-68
                  last edited by Feb 25, 2019, 4:09 PM

                  @andrecool-68

                  yes, unfortunately we don’t get any younger … but i always try to think that away ;-)
                  i hope you get as strong as possible again, or at least stay stable in health 🙏

                  A 1 Reply Last reply Feb 25, 2019, 4:59 PM Reply Quote 1
                  • A
                    andrecool-68 @Meta Chuh
                    last edited by Feb 25, 2019, 4:59 PM

                    @Meta-Chuh
                    do not think that time will go back…live now!

                    1 Reply Last reply Reply Quote 1
                    • A
                      andrecool-68
                      last edited by Feb 27, 2019, 9:03 PM

                      xmlTreeNav translated into Russian language, it became much easier, was there a way to disable the duplication of the two language files. And delete the Chinese no longer need, leaving only the Chinese strings which do not exist in Russian localization. and five kinds of rows to delete.

                      diff:status="modified"
                      diff:status="removed"
                      diff:status="below"
                      diff:status="added"
                      xmlns:diff="http://www.via.ecp.fr/~remi/soft/xml/xmldiff"

                      Made a change from the previous regular expression.

                      (\x20(diff:status|xmlns:diff)=").*?"

                      1 Reply Last reply Reply Quote 1
                      31 out of 31
                      • First post
                        31/31
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors