This visual trace shows how Bash uses capture groups in regex matching. First, a text string is set. Then, the regex with capture groups is applied using double brackets and the =~ operator. If the regex matches, Bash fills the BASH_REMATCH array with the full match and each capture group. We extract the desired parts from BASH_REMATCH[1], BASH_REMATCH[2], etc., and assign them to variables. Finally, we use these variables, for example, printing the extracted name and age. If the regex does not match, no variables are set and no output is printed. This step-by-step helps beginners see how capture groups work in Bash scripting.