expression reg \t
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 last edited by
@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++
Alan Kilborn last edited by
There’s no problem with using
\tin either the search or replace strings of PythonScript’s
Suggest you check your code and/or your data.
@claudio-pergolin said in expression reg \t:
thanks. it’s working