pos = findtextEx(newtext, "\"", lastposition) // we're searching for quotations
Problem description:
This always returns a 0. I'm guessing that means quotations aren't supported? I'm running this on an input, so there is always a quotation in the given text. If they aren't supported, are there any alternatives?
The only problems could come from your newtext, lastposition, and your method of seeing that pos is 0.