• Login
Community
  • Login

expression reg \t

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 256 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.
  • C
    claudio pergolin
    last edited by Jun 27, 2021, 4:25 PM

    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

    D 1 Reply Last reply Jun 27, 2021, 4:34 PM Reply Quote 0
    • D
      Dinesh Babu @claudio pergolin
      last edited by Jun 27, 2021, 4:34 PM

      @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
      • C
        claudio pergolin
        last edited by Jun 27, 2021, 4:36 PM

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

        A 1 Reply Last reply Jun 27, 2021, 4:48 PM Reply Quote 0
        • A
          Alan Kilborn @claudio pergolin
          last edited by Jun 27, 2021, 4:48 PM

          @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
          • C
            claudio pergolin
            last edited by Jun 27, 2021, 5:31 PM

            @claudio-pergolin said in expression reg \t:

            thanks. it’s working

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