Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    expression reg \t

    General Discussion
    3
    5
    35
    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 pergolin
      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 Babu 1 Reply Last reply Reply Quote 0
      • Dinesh Babu
        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 pergolin
          claudio pergolin last edited by

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

          Alan Kilborn 1 Reply Last reply Reply Quote 0
          • Alan Kilborn
            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 pergolin
              claudio pergolin last edited by

              @claudio-pergolin said in expression reg \t:

              thanks. it’s working

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors