Community
    • Login

    expression reg \t

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 567 Views 1 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.
    • claudio pergolinC Offline
      claudio pergolin
      last edited by

      Hello everybody,
      I need to modify some fields in a csv document with np ++ with the python instruction “editor.rereplace (r” old “, r” new “)”. I needed to modify some words preceding and followed by tabs leaving the latter unchanged.
      So my instruction would become: “editor.rereplace (r” \ told \ t “, r” \ tnew \ t “)”.
      To my surprise the addition of “\ t” which should have been a tab spacing made my statement non-functional.
      Where am I wrong? thank you

      Dinesh BabuD 1 Reply Last reply Reply Quote 0
      • Dinesh BabuD Offline
        Dinesh Babu @claudio pergolin
        last edited by

        @claudio-pergolin hii if you didn’t select extended(\n,\t,\r,\x…) ?? Means try by selecting it once

        1 Reply Last reply Reply Quote 0
        • claudio pergolinC Offline
          claudio pergolin
          last edited by

          sono in uno script. non in cerca>> trova… di np++

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA Offline
            Alan Kilborn @claudio pergolin
            last edited by

            @claudio-pergolin

            There’s no problem with using \t in either the search or replace strings of PythonScript’s rereplace function.
            Suggest you check your code and/or your data.

            1 Reply Last reply Reply Quote 0
            • claudio pergolinC Offline
              claudio pergolin
              last edited by

              @claudio-pergolin said in expression reg \t:

              thanks. it’s working

              1 Reply Last reply Reply Quote 0

              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