$foo = "My number is 123456"; $num = $foo; $num =~ s/(\W|\D)//g; print $num; [download]
In reply to Re^5: php to perl by wazoox in thread Re^4: php to perl by Anonymous Monk