$nums =~ s/\D/ /g;
See s/PATTERN/REPLACEMENT/... under "Regexp Quote-Like Operators" in perlop. ( er, the documentation of /g was moved to perlre in 5.10 )
In reply to Re: Getting Trouble with REGEXP
by ikegami
in thread Getting Trouble with REGEXP
by Oromis92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |