Just a friendly note. That regex will give you a match for each letter or number. The match is also not limited to integer values and should therefor use quotes when using IF.
PHP:
"{-Variable.Name-}" == "" // Variable is empty
"{-Variable.Name-}" != "" // Variable is not empty