I am trying to split a line of text that looks something like this
host=randomhostid123 moreinfo id=otherstuffhere version="morestuff" type=TYPEA::TYPEB
i am tying to use split to parse it into
host=randomhostid123 moreinfo
id=otherstuffhere
version="morestuff"
type=TYPEA::TYPEB
to do this I was using
str.split('?[a-zA-Z]*=')
but all this is producing is the original string all over again I think the regex looks ok, but I am new to python regex
str. That's the name of the built-in type, and the function you use to convert things to strings. For example, you won't be able to dostr(2)to get'2'if you've replaced the function with a string.