I have been trying to find a working regex to filter out only variables in a shell script but not been able to. I am not talking about the the actual variable but the string that creates it. As an example I have been trying to I have been trying to find a working regex to f