this is me with usssual patern question … ehh i should het that pattersn book.
So i wanted to backup my phone address book but it is not in a vCard format so I wanna convert file to a vCard… oroginal file is Some junk + vCard, so I jut want to strip the junk off… can some one help me out with patern ofr preg_math
here is my file content:
[code=php]
11110010001000000000L[][][][][][][][]BEGIN:VCARD
VERSION:2.1
N:Check Bill Balance;;;;
TEL;CELL:*225#
TEL;HOME:
TEL;WORK:
TEL;FAX:
TEL:
NOTE:
EMAIL:
END:VCARD
[][][][][][][][][]11110010001000000000L[][][][][][][][]BEGIN:VCARD
[] = are some boxes that probably mean simething in hex but they can not be copied. Anyway I hope I would be able to open file on the web as text and then just strip everything.
Here is logic that I would need:
delete all charakters betweenBEGIN:VCARD and BEGIN:VCARD (but not in reverse) In another words we have some unknown code and then we have our vCard, we wanht to see the vCrd declaration and dont delete it (unfortunantly there is not even a space between those charakters and the beginning ov vCard)
Hope you can help ?
THanks!