« Return to Thread: Unable to update stock prices

Re: Unable to update stock prices

by Thomas Baumgart-3 :: Rate this Message:

| View in Thread

On Sunday 16 November 2008 20:09:42 Midahed wrote:
> Thomas Baumgart wrote:

[...]

> > p.s. Hope this works, I haven't tested it at all (well, just using the
> > QRegExp debugger inside KDevelop)
>
> Thanks Thomas.  Much appreciated, but I'm afraid it didn't work - I got
> exactly the same result in that the status message doesn't say anything
> about reading the date.
>
> I'd understood the general principles of RE OK and, now that you've
> confirmed that I'm on the right general track, I'll do some more
> experimenting using your suggestion as a base.  However, I still don't
> understand the RE that's used to extract the symbol:-
>
> "([^,"]*)",.*
My stock Yahoo UK entry says:

"?([^,"]*)"?,.*

for the symbol, and there the quotes are optional

> That says to me "look for a string that's in quotes, that doesn't contain a
> comma or a quote, and is terminated by the first comma you find".  
> However, the data I'm getting from Yahoo doesn't have quotes around the
> symbol, but the extraction of the symbol from the downloaded data works OK.
>  I fail to understand how!   The RE that's used seems to specifically
> require the quotes around the string that it's trying to match, but they
> aren't present in the source data.
>
> Thanks again,
>
> Mike


--

Regards

Thomas Baumgart

GPG-FP: E55E D592 F45F 116B 8429   4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
How many programmers does it take to change a
light bulb? None. It's a hardware problem!
-------------------------------------------------------------


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (232 bytes) Download Attachment

 « Return to Thread: Unable to update stock prices