I'll just comment on your second question:

Cecil Westerhof <[email protected]> writes:

> Secondly I have been playing a little:
>     (setq delay "2009-12-22")
>
>     (string-match "\\([0-9][0-9][0-9][0-9]\\)-\\([0-9]+\\)-\\([0-9]+\\)"
>                   delay)
>
>     (match-string 1 delay)
>
>     (match-string 2 delay)
>
>     (match-string 3 delay)
>
>     (match-string 0 delay)
>
> The string-match gives 0, so the match is found. But the first three
> match-string do give nil.
> And the last gives:
>     Debugger entered--Lisp error: (args-out-of-range "2009-12-22" 973 976)

Hmm, here's what I get:

(setq delay "2009-12-22")
"2009-12-22"

(string-match "\\([0-9][0-9][0-9][0-9]\\)-\\([0-9]+\\)-\\([0-9]+\\)"
              delay)
0

(match-string 1 delay)
"2009"

(match-string 2 delay)
"12"

(match-string 3 delay)
"22"

(match-string 0 delay)
"2009-12-22"

Dan



_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to