batcater98 has asked for the wisdom of the Perl Monks concerning the following question:
I have a long string that has static characters in the string that I want to use for splitting the string up into parts. What would be the best way to break down the string based on key characters in the string.
Example: 12345645/883700892.log Date Time [4] kkdjkdkd 889298383/883729083.dat
I want the 883700892, the Date time, and the 883729083 and leave everything else out.
Also, I am looking for a easy say to skip a string if it ends in a ")" or if it ends in ".sta" or something like that.
Ideas?
Thx,
Ad.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splitting up a string based on character locations
by jettero (Monsignor) on Dec 19, 2006 at 19:52 UTC | |
|
Re: splitting up a string based on character locations
by GrandFather (Saint) on Dec 19, 2006 at 20:09 UTC | |
by batcater98 (Acolyte) on Dec 19, 2006 at 20:57 UTC | |
by GrandFather (Saint) on Dec 19, 2006 at 21:29 UTC | |
by batcater98 (Acolyte) on Dec 19, 2006 at 21:47 UTC | |
by GrandFather (Saint) on Dec 19, 2006 at 22:44 UTC | |
by batcater98 (Acolyte) on Dec 21, 2006 at 16:30 UTC |