LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
wiebe@CARYA

Allow replace with empty string in Text Search Results dialog

Status: New

It's kind of annoying that replacing text with an empty string is not allowed.

 

Let's say you have 50 controls, all formatted tagname_tagnumber. You want to rename them to just tagnummer (or just tagname).

 

Finding them all is easy (regex ^.*_).

Renaming them all to A_tagname is easy.

But renaming to just tagname is not allowed...

Empty String Not Allowed.png

(I know I can use scripting...)

 

 

3 Comments
wiebe@CARYA
Knight of NI

Thanks for the 1st kudo,

 

Manzolli
Active Participant

This case you mentioned can be done by searching the whole word "tagname_tagnumber" then replacing for "tagnummer" or "tagname". But if you have "test-A", "test-B" and "test-C" and want to get rid of "test-" resulting in "A", "B" and "C" then you are right.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
wiebe@CARYA
Knight of NI

Not if tagname_tagnumber are regular expressions (I think)? That would require (expression A)_(expression B) to be replaced with $2, which is also not possible (yet, but unlikely to happen).

 

Anyway, regardless the use case, it's inconvenient you can't replace with an empty string.

 

Thanks for the kudo!