I need to check if a certain variable has digits.
In perl you could do this:
if($something =~ /[\d]/ig ) echo "numbers"
or if wanted to check if it didnt have vowels i could do this
if($something !~ /[aeiou]/ig) echo "no vowels"
i have tried "ereg("/[\d]/ig", $something)" but it doesnt work
can some one please help me thanks.