FireBird34 has asked for the wisdom of the Perl Monks concerning the following question:
Also, talking with someone else (PHP they use), and they commented about using regex when doing what I need. Can someone enlighten me on using this to strip the non-numeric values? Thanks.$scalar = "a1b2"; @array = split(/\D/,$scalar); print @array;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Strip non-numeric
by ihb (Deacon) on Jan 13, 2003 at 22:55 UTC | |
by FireBird34 (Pilgrim) on Jan 13, 2003 at 22:58 UTC | |
by Abigail-II (Bishop) on Jan 13, 2003 at 23:47 UTC | |
by Aristotle (Chancellor) on Jan 14, 2003 at 09:47 UTC | |
by Abigail-II (Bishop) on Jan 14, 2003 at 10:14 UTC | |
| |
by FireBird34 (Pilgrim) on Jan 14, 2003 at 04:49 UTC | |
by Abigail-II (Bishop) on Jan 14, 2003 at 09:46 UTC | |
by Hofmator (Curate) on Jan 14, 2003 at 08:48 UTC | |
by FireBird34 (Pilgrim) on Jan 14, 2003 at 21:08 UTC | |
by Abigail-II (Bishop) on Jan 14, 2003 at 21:44 UTC | |
|
Re: Strip non-numeric
by krujos (Curate) on Jan 13, 2003 at 22:50 UTC | |
by tall_man (Parson) on Jan 13, 2003 at 22:54 UTC | |
|
Re: Strip non-numeric
by rbc (Curate) on Jan 13, 2003 at 22:52 UTC |