- Subject: Re: jed 0.99-17 looks good
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Fri, 26 Nov 2004 10:10:21 -0500
G. Milde <g.milde@xxxxxx> wrote:
>Is there a function, that checks whether a string contains characters except
>0-9?
You can use:
i = array_map (Int_Type, &string_match, files, "^[0-9]+$", 1);
files = files[where(i)];
to prune the files array to values that consist only of digits.
Instead of atoi, I may add a function like strtol that allows a radix
to be specified so that "09" will be converted to 9 for radix 10. At
the moment, integer("09") will attempt to interpret this as octal
(radix 8) resulting in an exception.
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2004 date index]
[2004 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]