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.
In reply to Re^2: splitting up a string based on character locations
by batcater98
in thread splitting up a string based on character locations
by batcater98
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |