In reference to your answer to JRL's post here: Separate> Suggestion (resolved)(RegEx solution)
I ran the code you supplied:
and here's the variables created as shown in the Watch List. Note that ~ below represents either CR or LF:a command that creates variables, VAR_1, Var_2, etc. wrote:RegEx>.,String1%CRLF%String2,0,var,var_count,0
I wanted to see if each character was captured so to get a better view, I right-clicked on the Watch list and used the Sort function. Now the variables looked like this:unsorted wrote:VAR_6=g
VAR_5=n
VAR_8=~
VAR_7=1
VAR_2=t
VAR_1=S
VAR_4=i
VAR_3=r
VAR_9=~
VAR_15=g
VAR_14=n
VAR_COUNT=16
VAR_16=2
VAR_11=t
VAR_10=S
VAR_13=i
VAR_12=r
That's better but still mixed around somewhat.sorted wrote:VAR_1=S
VAR_10=S
VAR_11=t
VAR_12=r
VAR_13=i
VAR_14=n
VAR_15=g
VAR_16=2
VAR_2=t
VAR_3=r
VAR_4=i
VAR_5=n
VAR_6=g
VAR_7=1
VAR_8=~
VAR_9=~
VAR_COUNT=16
Would it be possible, at least for the variables created by MS commands like Separate, Regex, etc., to have them appear like this in the Watch List when we click Sort:
Possible? Impossible? Outrageous? Your thoughts?an improved sort function might have wrote:VAR_1=S
VAR_2=t
VAR_3=r
VAR_4=i
VAR_5=n
VAR_6=g
VAR_7=1
VAR_8=~
VAR_9=~
VAR_10=S
VAR_11=t
VAR_12=r
VAR_13=i
VAR_14=n
VAR_15=g
VAR_16=2
VAR_COUNT=16