Of course, I’m glad it worked! Not sure which one you’re referring to so I will break down both.
The first one I’m telling GREP Find/Change to find everything between the end of the line that is not a space ([^ ]+) and the last space () before the end of the line ($). Once it finds that space I am telling it to then change that space to a tab () and then replacing the same content that was after the space ($1) to be after the tab. I dont use the greedy negated character class ([^ ]+) very often, but it comes in handy at times when you want to be very specific that GREP, in this case, find everything that is not whatever is within the square brackets.
Find: ([^ ]+)$
– find a space
([^ ]+) – capture group (everything within parenthesis) to “find everything that is not a space.” ([^ ]+) which is a negated character class (anything between the square brackets) with a carrot (^) saying that this is a negative character class, and a literal space. The + is making it greedy, or the “find everything” part.
$ – end of line
Change: $1
– tab
$1 – variable to denote the capture group in Find
The second one is similar to the first, but since you just had numbers/digits at the end of each line I am telling GREP Find/Change to find the last digit (\d) at the end of each line ($) and replace the digit in the same place it was before with the capture group variable ($1) and then adding one tab after it ().
Find: (\d)$
\d – any one digit
$ – end of the line
Change: $1
$1 – variable to denote the capture group in Find
– tab
Hope that explanation helps! Let me know if you have any questions on any of it.