Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
parsing question
#1
Can someone tell me how to parse this using '\x' and place each line on it's own:....I tried .split(b'\x') but this gives me an error

Output:
b'\x00\xd0\xffp\x01p\x01 \x00 \xff\xa0\x00 \x01\x90\x00\xf0\x00\xf0\x00 \x01P\xfe\xf0\x00\xc0\xff\x80\x00\x10\x00\xc0\xff\xb0\x01\xb0\x01@\xff\xc0\x00`\x01`\x01P\x01\xd0\x01@\x01\xa0\x00\xd0\x01P\x01P\xff\xc0\x02\x10\x010\x00\x80\x01\x10\x000\x00\x90\x00\x10\xff\xf0\x00\x10\x00p\x02`\x01`\x01P\x01\x10\x00\x10\x00@\x010\x00\xd0\x01\x80\x02 \x02\x90\x02 \x02P\x01\xd0\x01@\x00\xd0\x00\xd0\x01\xf0\x03\x00\x02\x90\x02\xe0\x01\xc0\x00\xe0\x02\xa0\x03\xb0\x02P\x02\xc0\x03@\x02 \x020\x02@\x04\x10\x02\x90\x00\xd0\x02\xc0\x04`\x02\xc0\x02 \x02\x80\x03\x90\x04\x00\x02p\x02\xd0\x03\x00\x01\xe0\x02\x00\x03@\x03\xb0\x03\xf0\x04@\x05 \x03\xd0\x04\x90\x03`\x04@\x04\xa0\x04\xb0\x04\xf0\x04 \x050\x06\x90\x05\xd0\x03`\x05\x10\x06\x10\x06\xb0\x08P\x06@\x05\xb0\x05\xf0\x05\xf0\x04\xd0\x06\x10\x050\x05\x90\x06\xf0\x07\x10\x06\xf0\x07\x90\t \x07 \x06\x90\x07\xa0\x08\x10\x07`\x07p\x08p\x07\x10\t\xb0\x07\xf0\x06@\x07\xc0\x07\x90\x080\x08\x90\x07\xe0\x07\x80\t\x00\x06\xe0\x080\x06\xc0\x08 \x06\xd0\x08\x80\x06P\x07\xe0\x08\xa0\x08\xe0\tP\tp\t@\x080\t\x00\x08 \x08 \x07p\x07`\x08 \x07\x80\x07\x10\x06\x90\x08@\x080\x08\x80\x08\x00\x08\x00\x07@\x06\xf0\x07\xb0\x08\x10\x07\x80\x07\xe0\x06\xa0\x07\xa0\x06\xe0\tP\x07P\x07\xb0\x06\xe0\x06p\x05\xc0\x06\xc0\x06 \x06\x90\x05\xa0\x06\xd0\x07`\x05\x
Reply


Messages In This Thread
parsing question - by ridgerunnersjw - Oct-09-2020, 07:50 PM
RE: parsing question - by bowlofred - Oct-09-2020, 08:20 PM
RE: parsing question - by ridgerunnersjw - Oct-09-2020, 08:38 PM
RE: parsing question - by bowlofred - Oct-09-2020, 09:13 PM
RE: parsing question - by Skaperen - Oct-10-2020, 02:48 AM
RE: parsing question - by ridgerunnersjw - Oct-10-2020, 06:55 PM
RE: parsing question - by bowlofred - Oct-10-2020, 08:10 PM
RE: parsing question - by ridgerunnersjw - Oct-10-2020, 09:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  parsing question ridgerunnersjw 3 2,034 Oct-06-2020, 02:06 AM
Last Post: micseydel
  string parsing question ( I think) diggee17 4 3,070 Jul-24-2019, 02:37 PM
Last Post: diggee17
  Parsing Large Numbers Question amyvaulhausen 5 3,393 Mar-24-2019, 08:46 AM
Last Post: samsonite

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020