Added support for setting the value for undefined ptrs, attrs
Added custom variable format regex