Community
    • Login

    Replace a special character

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 2.8k Views 3 Watching
    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 Offline
      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 Offline
        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 Offline
          Scott Sumner
          last edited by

          How about just forget the + and the ? altogether?

          Claudia FrankC 1 Reply Last reply Reply Quote 1
          • Claudia FrankC Offline
            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 Offline
              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 Offline
                Jose Emilio Osorio
                last edited by

                Thanks. It works without the + and ?.

                1 Reply Last reply Reply Quote 1

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors