in reply to Removing digits until you see | in a string
To get whatever's before the |:
($data_hash{$index}) = $str =~ /([^|]*)/;
( I originally posted ($data_hash{$index}) = $str =~ /(\d+)/;. )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Removing digits until you see | in a string
by kevyt (Scribe) on Jan 08, 2007 at 05:29 UTC | |
by ikegami (Patriarch) on Jan 08, 2007 at 16:04 UTC | |
|
Re^2: Removing digits until you see | in a string
by jettero (Monsignor) on Jan 08, 2007 at 14:23 UTC |