in reply to Re: splitting up a string based on character locations
in thread splitting up a string based on character locations
Thanks Grandfather - What would you do with this real example.
e:\logfiles\mylocationbase.log [3] Mon 13Mar06 11:00:25 - (000558) Sen +ding file d:\data\18bn5489.dat e:\logfiles\mylocationbase.log [3] Mon 13Mar06 11:00:31 - (000558) Sen +t file d:\data\18bn5489.dat successfully (169 Kb/sec - 1049600 bytes) e:\logfiles\mylocationbase.log [3] Mon 13Mar06 11:00:32 - (000558) Sen +ding file d:\data\18bn5489.sta
These repeat over and over.
Out of first line I want to exstract what is between e:\logfiles\ and .log "alliancebase" and that will change but the e:\logfiles and .log will always be there.
I also want to exstract the Mon 13Mar06 11:00:25 and keep the skip everything from the - to the \ after data.
And keep everything to the end.
On second I want to skip anything that ends with a )
On third I want to skip anything that ends with .sta
thanks,
Ad.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: splitting up a string based on character locations
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 |