excuse my ignorance, cant find it here in the forum. how do i strip the "|" or the pipe character from a line. i tried this. it splits but doesnt remove the "|" character.

output = string.strip (line, '|') # strip the pipe character
print output.split() # split output and print

thanks folks but i unfused my brain and figured it out.

output = line.replace("|"," ")
print output.split()

Or more directly,

print line.split("|")

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.