Asterisk REGEX

exten => 154,1,Answer()
exten => 154,n,Set(test=32333444538)
exten => 154,n,Set(foo=${REGEX("[0-7]" ${test})}

i get foo =1, why???