I have %var1%
and %var2%
var1="UserInput"
var2=file.log
If a user types %var1%
as "file.txt", how can I (if possible) check only the three last characters (Or the file format if that's possible) to see if it matches %var2%
's three last characters or file format?
Another method that does the same thing is also welcome (But the user-input variable must be there)