I have this simple bit of code:
import re
kek = "./${COMPUTERNAME}/exe/jej"
reg = r"\${(COMPUTERNAME)}"
print kek
print reg
match2 = re.match(reg, kek)
print (match2)
which output:
./${COMPUTERNAME}/exe/jej
\${(COMPUTERNAME)}
None
So it doesn't match. I tested the string on regex101.com and on other websites as well, and it is working as intended (this is actually a test regex since i was trying to debug a larger regex), and i can't find why would it not work with python...
I also tried multiple combination with more or less backslashes.