PREV INDEX NEXT

Author: Unknown
Subject: regex understanding follow-up
Date: Wednesday, 14 Oct 2020, 11:15:47

In the example you gave:

"  % X=FOO /c/cs323/Hwk3/mcBash BAR
  (1)$ ${1}$X${1} "


So for the example you gave, would you first want to convert the first ${1}, shift which index/char we are in the line, then call the regex again and get $X, shift the index of the char in the line we are at again, and then call the regex again to get the second ${1} in that order?
PREV INDEX NEXT