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
\tin either the search or replace strings of PythonScript’srereplacefunction.
Suggest you check your code and/or your data. -
@claudio-pergolin said in expression reg \t:
thanks. it’s working
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