20469Re: modifying format of stats tool output & concatenating stats from many files
- Mar 1 4:59 AM--- In firstname.lastname@example.org, "diodeom" <diomir@...> wrote:
> While on this topic: your handy "List Variable Names" clip couldThanks, I didn't realize you could use a space in front of additional variable names.
> maybe include a provision to account for multiple variables
> declared in a single line, e.g. ^!Set %Var1%=one; %Var2%=two;
Here's a revision (there are a couple of long lines):
;2007-01-14 created by Sheri Pierce
;2010-03-01 Revision by Sheri Pierce
;revision tested with NoteTab 6.2 (PCRE 8.01)
;use to help create clearvariable statements for the clip being edited
^!If ^$GetSelSize$>0 Next Else Skip
^!Continue Some text is highlighted. Only variables set within the selection will be considered.
^!Set %varnames%="^$GetDocListAll("(?i)(^\^\!Set(Array|Code)?\x20|;\x20?)\K%[\d\pL_]+?%(?=\=)";"^!ClearVariable $0\r\n")$"
^!IfEmpty ^%varnames% Next Else Skip_2
^!Info No variables found
;end of clip
- << Previous post in topic Next post in topic >>