[PHP] Re: parse text

2002-06-19 Thread BB
At a guess, without trying it out $fp = fopen("your file") or echo "Cant open your file"; $tmp = fread($fp,1024); preg_match("/(.{8}).(.{5})/",$tmp,$matches); then $matches[1] will have the first part and $matches[2] will have the second note: $matches[0] = whole preg'd text "Sonjaya" <[EMAIL P

[PHP] Re: parse text

2002-06-19 Thread Henrik Hansen
[EMAIL PROTECTED] (Sonjaya) wrote: > i want read some tex like this > > here contens file text > > 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ > > > 1. i want read from first left until eight caracter (12345678 <-- > caracter i cant read ) > it can be use fread > 2. i want read 5