So, why not do /<solar>(.*)<\/solar>/   ?

-- 
Jon "TheNiceGuy" Spriggs

On 12 Jul 2010 22:56, "LeeGroups" <mailgro...@varga.co.uk> wrote:


>> $solar_info =~ s/<\/solar>.*/,/;
>>
>> From my tinkerings, this should find the string </solar>...

> What's the input string? The following code simply prints "," for me
> not ",abcdef" as you sugges...
This input <solar>8,27.31,28.68,28.81,0.00,0.00,0</solar>
It need to be --
8,27.31,28.68,28.81,0.00,0.00,0

Another line chops off the <solar>.
The problem is that occasionally there is rubbish on the end of the
line, or even another line appended to the end of the first...





-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki...
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/

Reply via email to