View Single Post
Posts: 272 | Thanked: 52 times | Joined on Jan 2010
#4
I have tried split... but ive had a few issues with it, I eventually tried something like key,value=str.split(":") which was quite far down in about 3 for loops, and I was getting error messages, like there was too many loops for it to do that.

At present I have:

Code:
for eachResult in resultsArr :
	eachResultCount=eachResultCount+1
	lineArr=self.splitSearchResults(eachResult,';')
	# Loop through each of the lines in the result
	for eachLine in lineArr :
		eachLineCount=eachLineCount+1
		eachAttribute=self.splitSearchResults(eachLine,':')
		# Loops thruogh the key and values for this line
		for value in eachAttribute :
			eachAttributeCount=eachAttributeCount+1