in reply to Numbers only in a string
#!/usr/bin/perl -w while(<DATA>) { s/[^\d]+//g; print $_,$/; } __DATA__ 800-800-1212 (800)800-1212 (800) 800-1212 800 800 1212
__END__ 8008001212 8008001212 8008001212 8008001212
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Numbers only in a string
by superfrink (Curate) on Sep 09, 2005 at 05:02 UTC |