Well, it looks like I was misinformed. There is some global nature to the vars. I now have the EasyPattern filter command removing the found text and I can reference the vars created. HOWEVER, that reference only applies to the subsequent file processed. WTF?
Abbreviated from the log:
file A is opened
3 replaces done in file A for this:
Code: Select all
EasyPattern [PRODUCT CODE: [capture(4 chars) as 'prodCode'][1+ chars]ISSUE: [capture(2 digits) as 'issNum']/[capture(4 digits) as 'issYr']] with []
(Action: remove)... other stuff happens, then at the end, I have either this
Code: Select all
** DISABLED ** Add header [@prodCode @issNum @issYr ]
or this (both behave the same)
Code: Select all
Add file header [@prodCode @issNum @issYr ]
File A is written to a new .txt file.
File B is opened.
6 (!) Replaces done for the EPtn code (there's only one line with that data).
The header IS added to file A with nothing for the var text.
The header IS added to file B with the data from file A. Now you get a sense of my WTF.
File C has 2 replaces done. File C has header data from file B.
If it matters any, the EPtn code is the very first line to run and the add header is the very last thing to run.