AUTO_TEMPLATE multiple RegEx matches
/* Foo AUTO_TEMPLATE "Foo\([0-9]\)_\([A-Z]\)" ( .OldPortName\([a-z]\) (@NewPortName\1@) ); */
Above I have two RegEx matches in the Instance Name. Is there a way I can remember both of them in
such that I can use them both, like I had shown before. i.e. In my usage above,  refers to what got matched against \([0-9]\) and @ refers to what got matched against \([A-Z]\).
RE: AUTO_TEMPLATE multiple RegEx matches - Added by Wilson Snyder almost 3 years ago
You can't do it in one step, you need to either match the entire name and then use a lisp-substring function to sub-extract, or just use vl-cell-name. If you can't just pick off substrings you'll need to write a lisp function - see examples that use AUTO_LISP under in the faq.
/* Foo AUTO_TEMPLATE( .OldPortName\([a-z]\) (@"(substring vl-cell-name 3 4)"NewPortName\1@"(substring vl-cell-name 5 6)") ); */