vek has asked for the wisdom of the Perl Monks concerning the following question:
Which appears to work until I come across an error string without the directory path (i.e INVALID ORDER-NO 4546090). I end up with this string: ORDER-NO 4546090. I'm sure this is something very simple I'm overlooking.s/^[\/\S+?]*//g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A poor bloke and his regex...
by dws (Chancellor) on Mar 01, 2002 at 17:56 UTC | |
|
Re: A poor bloke and his regex...
by grep (Monsignor) on Mar 01, 2002 at 17:53 UTC | |
by vek (Prior) on Mar 01, 2002 at 18:15 UTC | |
|
Re: A poor bloke and his regex...
by tadman (Prior) on Mar 01, 2002 at 18:00 UTC | |
|
Re: A poor bloke and his regex...
by dmmiller2k (Chaplain) on Mar 01, 2002 at 18:09 UTC | |
|
Re: A poor bloke and his regex...
by dmouille (Novice) on Mar 01, 2002 at 18:56 UTC | |
|
Re: A poor bloke and his regex...
by simon.proctor (Vicar) on Mar 01, 2002 at 17:59 UTC | |
|
Re: A poor bloke and his regex...
by Anonymous Monk on Mar 01, 2002 at 19:55 UTC |