my data is coming from subprocess and on the output i am receiving :
sample:
helo, aawe.adam , by the w,: 12.1:\r\n . heesa1.\r\n,b'asdasd',nme.AAAA.\r\n
type=<class 'bytes'>
i want to strip it in one line and then extract only barts between two characters, in this example .
(dot)
expected result:
adam , by the w,: 12
1:
heesa1
,b'asdasd',nme
AAAA
I've also tried this method: Extracting text between two strings
but i am receiving errors :
TypeError: cannot use a string pattern on a bytes-like object
thanks in advice `