Jump to content

need help to stringsplit complex txt file


Recommended Posts

hello to all,

i need to recover some info from a txt file :

.P09PNM.PNPPOM:cc.b:PVV44P.PVV01P:PN01:44/1;PN;:44/1;PN;PZ(=PZP);
.P10POM.PS6POM:cc.v:PVV02P.PVV43P:==02020202:2/43;==;
.PS5POM.PA3POM:nn.b:PVV42P.PVV03P:==03030303:42/3;==;
.PA4POM.PS4POM:nn.v:PVV04P.PVV41P:==04040404:4/41;==;
.PS3POM.PA5POM:nn.b:PVV40P.PVV05P:==05050505:40/5;==;
.PA6PNM.PS2POM:nn.v:PVV06P.PVV39P:PN06PZ06:6/39;PN;PZ;
.PS1POM.P12POM:nn.b:PVV38P.PVV07P:==07070707:38/7;==;
.P08POM.PT4POM:nn.v:PVV08P.PVV37P:==08080808:8/37;==;
.PT3PNM.PA9POM:cc.b:PVV36P.PVV09P:PN09PZ09:36/9;PN;PZ;
.P05POM.PT2POM:cc.v:PVV10P.PVV35P:==10101010:10/35;==;
.PT1POM.PE9POM:nn.b:PVV34P.PVV11P:==11111111:34/11;==;
.PR5POM.PV6PNM:nn.v:PVV12P.PVV33P:PN12:12/33;PN;
.PV4POM.PR1POM:nn.b:PVV32P.PVV13P:==13131313:32/13;==;
.PK7POM.PV3POM:nn.v:PVV14P.PVV31P:==14141414:14/31;==;
.P11POM.PC1POM:cc.b:PVV30P.PVV15P:==15151515:30/15;==;
.PC2POM.PV2POM:cc.v:PVV16P.PVV29P:==16161616:16/29;==;
.PV1POM.PC3POM:nn.b:PVV28P.PVV17P:==17171717:28/17;==;
.PC4POM.PZ6POM:nn.v:PVV18P.PVV27P:==18181818:18/27;==;
.PZ4POM.PC6POM:nn.b:PVV26P.PVV19P:==19191919:26/19;==;
.P07POM.PZ3POM:nn.v:PVV20P.PVV25P:==20202020:20/25;==;
.PZ2POM.PC7POM:nn.b:PVV24P.PVV21P:==21212121:24/21;==;
.PC8POM.PZ1POM:nn.v:PVV22P.PVV23P:==22222222:22/23;==;
.P04POM.P01POM:cc.b:PVV04O.PVV01O:==23232323:IV/I;==;
.P02POM.P03POM:cc.v:PVV02O.PVV03O:==24242424:II/III;==;
.P09PZM.PZPPOM:cc.b:PVV44P.PVV01P:PZ01:44/1;PZ;:xx
.PZ5POM.PV6PZM:nn.v:PVV12P.PVV33P:PZ12:12/33;PZ;
.P13POM.PVPPOM:cc.b:PVV44P.PVV01P:PV01:44/1;PV;
.PA6PVM.PY2POM:nn.v:PVV06P.PVV39P:PV06:6/39;PV;
.PT3PVM.PY9POM:cc.b:PVV36P.PVV09P:PV09:36/9;PV;
.PV5POM.PV6PVM:nn.v:PVV12P.PVV33P:PV12:12/33;PV;
.P06POM.PCPPOM:cc.b:PVV44P.PVV01P:PC01:44/1;PC;
.PA6PCM.PW2POM:nn.v:PVV06P.PVV39P:PC06:6/39;PC;
.PT3PCM.PW9POM:cc.b:PVV36P.PVV09P:PC09:36/9;PC;
.PC5POM.PV6PCM:nn.v:PVV12P.PVV33P:PC12:12/33;PC;

this file is related to newpaper creation.

Some explaination (post line 2, other are more complex) :

.P10POM.PS6POM:cc.v:PVV02P.PVV43P:==02020202:2/43;==;

I need only few information:

P10POM=2
PS6POM=43
cc=color

I want to use ':' to split lines, but obtain not so clear sub lines :

.P10POM.PS6POM
cc.v
PVV02P.PVV43P
==02020202
2/43;==;

any idea for next step ?

Thank you,

m.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...