AnsweredAssumed Answered

How can I search/find and replace with intelligence

Question asked by tbaker on Feb 1, 2012
Latest reply on Feb 2, 2012 by tbaker

I used to use perl one liners for search and replace when DxDesigner schematic files were text based. This would allow me to change a net name with intelligence and not have it be a tedious process.

In other words, if I wanted to change a prefix of nets, it could be done quickly with backreferences by doing something like:

s/prefixA(.*)/prefixB$1/

 

Example:

$ cat prefix

PrefixA1111

PrefixA2222

 

$ perl -pi -e 's/PrefixA(.*)/PrefixB$1/' prefix

 

$ cat prefix

PrefixB1111

PrefixB2222

 

Does anyone know of a clever way to do this with the new database versions of DxDesigner? Or perhaps there is an easy way I am missing? I tried using backreferences in the replace field, but that only made the syntax show up in the netname and they all got named the same.

 

I am using DxDesigner IND7.9.2

Outcomes