Community
    • Login

    Replace a special character

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 2.2k 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.
    • Jose Emilio OsorioJ
      Jose Emilio Osorio
      last edited by

      Hi,
      I´m using this [^\x00-\x7F]+ to find the “no ASCII” characters and then replace them with a space. But when it finds 2 or more “no ASCII” characters together, it only replaces one space for all the characters that are together.
      Example:
      FIND: “ASASÉÉSSS”
      REPLACE: “ASAS SSS”

      And I need like this: “ASAS SSS” (two spaces)

      Any help ?.
      Thanks.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC
        Claudia Frank @Jose Emilio Osorio
        last edited by

        @Jose-Emilio-Osorio

        dosn’t it help to replace the + mulitplier with a question mark?
        Like [^\x00-\x7F]?

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Scott SumnerS
          Scott Sumner
          last edited by

          How about just forget the + and the ? altogether?

          Claudia FrankC 1 Reply Last reply Reply Quote 1
          • Claudia FrankC
            Claudia Frank @Scott Sumner
            last edited by Claudia Frank

            @Scott-Sumner

            :-D - good one, if this is the complete regex used by OP :-D

            Cheers
            Claudia

            Scott SumnerS 1 Reply Last reply Reply Quote 1
            • Scott SumnerS
              Scott Sumner @Claudia Frank
              last edited by Scott Sumner

              @Claudia-Frank

              Well, we RARELY get the full story here…with the FIRST posting.

              :-)

              (Looks like we got the full story THIS time–predicting the future!!!)

              1 Reply Last reply Reply Quote 2
              • Jose Emilio OsorioJ
                Jose Emilio Osorio
                last edited by

                Thanks. It works without the + and ?.

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