in reply to Re^2: Variable Declaration
in thread Variable Declaration

A second error you haven't noticed yet: $? is a variable name. Perhaps you wanted \$?, although .*\$? is the same as just .*.