[ubuntu-uk] [OT] Quick Perl question...
Jon Spriggs
jon at spriggs.org.uk
Mon Jul 12 23:26:37 BST 2010
So, why not do /<solar>(.*)<\/solar>/ ?
--
Jon "TheNiceGuy" Spriggs
On 12 Jul 2010 22:56, "LeeGroups" <mailgroups at 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 at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-uk/attachments/20100712/44790900/attachment.htm
More information about the ubuntu-uk
mailing list