Am 20.09.2025 um 03:25 schrieb Cottrell, Allin:
 On Fri, Sep 19, 2025 at 12:08 PM Sven Schreiber
 <sven.schreiber(a)fu-berlin.de> wrote:
>> Below, a few ways of getting what you originally wanted:
>>
>> <hansl>
>> string hey = "aha oho, uhu"
>> string s1
>> sscanf(hey, "aha %31[^\n]", s1) # scan up to newline, if present
> In principle I like this one especially, but the incoming string in my
> case came from getinfo(<someseries>).description, and so I guess there
> really wasn't any newline in there.
 Not a problem. If there's no newline the scan will continue to the end
 of the string. 
Ah, OK, excellent! BTW, contrary to what the help suggested (at least to 
me), the number (here: 31) doesn't strictly seem to be needed.
-s