expression reg \t
-
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 -
@claudio-pergolin hii if you didn’t select extended(\n,\t,\r,\x…) ?? Means try by selecting it once
-
sono in uno script. non in cerca>> trova… di np++
-
There’s no problem with using
\t
in either the search or replace strings of PythonScript’srereplace
function.
Suggest you check your code and/or your data. -
@claudio-pergolin said in expression reg \t:
thanks. it’s working